bug-gnulib
[Top][All Lists]
Advanced

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

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


From: Eric Blake
Subject: Re: [PATCH] strtod: work around IRIX 6.5 bug
Date: Thu, 02 Sep 2010 16:25:00 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2

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 dance.

* lib/strtod.c (strtod): Reparse number on shorter string if
exponent parse was invalid.
Reported by Tom G. Christensen.

Signed-off-by: Eric Blake<address@hidden>
---

I applied this on top of a fresh gnulib checkout and unfortunately the
test still fails in the same place.

:( Well, thanks for the feedback. I guess it's time for me to get inside a debugger and simulate the actual IRIX failure, rather than just relying on successful compilation. I'll post another attempt soon.

--
Eric Blake   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]