[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: luaO_str2d, strtod and hexadecimal numbers under IRIX
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 19 Oct 2010 14:21:00 -0200
> Lua fails to parse hexadecimal numbers under IRIX (6.5.30),
> evidently caused by a buggy strtod implementation. strtod just
> doesn't advance the endpointer exactly if s starts with '0x'
> ('0y' or '1x' yield the expected result), so that (endptr == s)
> holds and the conversion fails.
Does someone know how widespread is this problem?
> The modified luaO_str2d, the example program and its output
> below illustrate the problem and a potential workaround:
>
> [...]
Could you send only a diff of your changes to luaO_str2d (without debug
prints)?
-- Roberto