Re: [PATCH] strtod: work around IRIX 6.5 bug

2010-09-08 Thread Tom G. Christensen
On Wed, Sep 08, 2010 at 11:29:21AM -0600, Eric Blake wrote: > IRIX mis-parses "1e 1" as 10.0 and "" instead of 1.0 and "e 1". > Because the original parse may differ from the reparse in terms > of whether the value overflows, we have to do an errno dance. > > * lib/strtod.c (strtod): Reparse numbe

[PATCH] strtod: work around IRIX 6.5 bug

2010-09-08 Thread Eric Blake
IRIX mis-parses "1e 1" as 10.0 and "" instead of 1.0 and "e 1". Because the original parse may differ from the reparse in terms of whether the value overflows, we have to do an errno dance. * lib/strtod.c (strtod): Reparse number on shorter string if exponent parse was invalid. * tests/test-strtod

Re: [PATCH] strtod: work around IRIX 6.5 bug

2010-09-02 Thread Eric Blake
On 09/02/2010 09:35 AM, Tom G. Christensen wrote: On Wed, Sep 01, 2010 at 09:49:58PM -0600, Eric Blake wrote: IRIX mis-parses "1e 1" as 10.0 and "" instead of 1.0 and "e 1". Because the original parse may differ from the reparse in terms of whether the value overflows, we have to do an errno dan

Re: [PATCH] strtod: work around IRIX 6.5 bug

2010-09-02 Thread Tom G. Christensen
On Wed, Sep 01, 2010 at 09:49:58PM -0600, Eric Blake wrote: > IRIX mis-parses "1e 1" as 10.0 and "" instead of 1.0 and "e 1". > Because the original parse may differ from the reparse in terms > of whether the value overflows, we have to do an errno dance. > > * lib/strtod.c (strtod): Reparse numbe

[PATCH] strtod: work around IRIX 6.5 bug

2010-09-01 Thread Eric Blake
IRIX mis-parses "1e 1" as 10.0 and "" instead of 1.0 and "e 1". Because the original parse may differ from the reparse in terms of whether the value overflows, we have to do an errno dance. * lib/strtod.c (strtod): Reparse number on shorter string if exponent parse was invalid. Reported by Tom G.