This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: strtod ("nan") returns negative NaN
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Masamichi Hosoda <trueroad at trueroad dot jp>
- Cc: <newlib at sourceware dot org>, <cygwin at cygwin dot com>, <corinna-cygwin at cygwin dot com>
- Date: Tue, 14 Aug 2018 19:44:15 +0000
- Subject: Re: strtod ("nan") returns negative NaN
- References: <20180814.134527.917341694729989717.trueroad@trueroad.jp> <20180814_dot_134527_dot_917341694729989717_dot_trueroad_at_trueroad_dot_jp> <20180814095618.GT3747@calimero.vinschen.de> <20180815.000539.1012490218433540835.trueroad@trueroad.jp>
On Wed, 15 Aug 2018, Masamichi Hosoda wrote:
> On Linux with glibc, both strtod ("nan")
> and strtod ("-nan") return positive NaN.
>
> So I've created the patch that behaves like glibc.
> Both strtod ("nan") and strtod ("-nan") return positive NaN.
I would suggest that you should not consider fixed bugs in glibc (bug
23007 in this case) to be appropriate to emulate in other libraries.
--
Joseph S. Myers
joseph@codesourcery.com