lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

> 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

-- Roberto