[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luaO_str2d, strtod and hexadecimal numbers under IRIX
- From: Mike Pall <mikelu-1010@...>
- Date: Tue, 19 Oct 2010 18:42:17 +0200
Roberto Ierusalimschy wrote:
> > 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?
Well, it's a violation of ANSI C only present in IRIX. And IRIX is
for all practical purposes 'dead'. IRIX 6.5 is from 1998, the last
minor update 6.5.30 is from 2006 and hardware production has been
stopped in 2006, too.