[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: strtod bugs
From: |
Eric Blake |
Subject: |
Re: strtod bugs |
Date: |
Mon, 31 Mar 2008 06:24:49 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080213 Thunderbird/2.0.0.12 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Bruno Haible on 3/30/2008 6:11 PM:
| Find attached the results on a dozen of platforms.
Thanks.
|
| I integrated these test results into test-strtod.c as comments (since we
don't
| yet have a matrix like in m4/printf.m4), using a script like this:
Even more thanks! I'm adding the following, which does some more
interpretation of your results.
| - You seem to have seen problems on Solaris 8 that I did not see. What can
| be the reason? Did you use gnulib's signbit and isnan functions? I used
| the ones from the system, or trivial platform-specific replacements.
I'll experiment with that more today (I couldn't access that machine over
the weekend), and update comments as needed.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkfw2BEACgkQ84KuGfSFAYCVdACdH4AyxVbRWIVfoEDVL2tjWyIF
1B4An2gh4svEX5mEkJNaKV3ferEefkFn
=FoH5
-----END PGP SIGNATURE-----
>From 9553f74080a7fdad09e6f36e1cf55092b51bb31f Mon Sep 17 00:00:00 2001
From: Eric Blake <address@hidden>
Date: Mon, 31 Mar 2008 06:22:49 -0600
Subject: [PATCH] More strtod documentation.
* doc/posix-functions/strtod.texi (strtod): Interpret more test
failures as distinct bugs.
Signed-off-by: Eric Blake <address@hidden>
---
ChangeLog | 6 ++++++
doc/posix-functions/strtod.texi | 27 +++++++++++++++++++++------
2 files changed, 27 insertions(+), 6 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 49ada57..6c36fed 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-03-31 Eric Blake <address@hidden>
+
+ More strtod documentation.
+ * doc/posix-functions/strtod.texi (strtod): Interpret more test
+ failures as distinct bugs.
+
2008-03-30 Paul Eggert <address@hidden>
* lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
diff --git a/doc/posix-functions/strtod.texi b/doc/posix-functions/strtod.texi
index f1fdb43..0a890a7 100644
--- a/doc/posix-functions/strtod.texi
+++ b/doc/posix-functions/strtod.texi
@@ -19,26 +19,41 @@ Old versions of Linux.
This function returns a wrong end pointer on some old platforms.
@item
-This function fails to do a valid parse of @samp{-0x} on some
+This function consumes whitespace even when there is nothing that should
+be parsed on some platforms:
+IRIX 6.5, OSF/1 5.1.
+
address@hidden
+This function allows whitespace between @samp{e} and the exponent on
+some platforms:
+HP-UX 11.11, IRIX 6.5, OSF/1 4.0.
+
address@hidden
+This function returns the wrong end pointer for @samp{-0x} on some
platforms:
glibc 2.4, MacOS X 10.3, FreeBSD 6.2, Cygwin < 1.5.25-11.
@item
+This function returns +0.0 (not -0.0) for @samp{-0} on some platforms:
+IRIX 6.5.
+
address@hidden
This function fails to parse Infinities and plain NaNs on some platforms:
OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, OSF/1 5.1, Solaris 9, mingw.
@item
-This function fails to parse NaN() on some platforms:
+This function fails to parse @samp{NaN()} on some platforms:
glibc-2.3.6, MacOS X 10.3, FreeBSD 6.2, OpenBSD 4.0, AIX 5.1, HP-UX 11.11,
IRIX 6.5, OSF/1 5.1, Solaris?, Cygwin < 1.5.25-11, mingw.
@item
-This function fails to parse NaN(n-char-sequence) on some platforms:
+This function fails to parse @samp{NaN(@var{n-char-sequence})} on some
+platforms:
OpenBSD 4.0, HP-UX 11.11, IRIX 6.5, OSF/1 5.1, Solaris?, mingw.
@item
-This function returns the wrong end pointer when parsing
-NaN(n-char-sequence) on some platforms:
-glibc-2.4, OpenBSD 4.0, AIX 5.1, HP-UX 11.11, IRIX 6.5, OSF/1 5.1, Solaris?,
mingw.
+This function parses @samp{NaN(@var{n-char-sequence})}, but returns
+the wrong end pointer on some platforms:
+glibc-2.4, AIX 5.1.
@item
This function fails to parse C99 hexadecimal floating point on some
--
1.5.4
Re: strtod bugs, Bruno Haible, 2008/03/30
Re: strtod bugs, Bruno Haible, 2008/03/31
Re: strtod bugs, Bruno Haible, 2008/03/31