This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fix bz#9696: errno value of strtod
- From: Andreas Jaeger <aj at suse dot com>
- To: libc-alpha at sourceware dot org
- Date: Thu, 7 Jul 2011 09:21:12 +0200
- Subject: Re: Fix bz#9696: errno value of strtod
- References: <201107051421.21385.aj@suse.de>
On Tuesday, July 05, 2011 14:21:21 Andreas Jaeger wrote:
> Here's a patch to fix strtod, it returned EDOM instead of ERANGE for
> underflow,
>
> Andreas
>
> 2011-07-05 Andreas Jaeger <aj@suse.de>
>
> [BZ#9696]
> * stdlib/strtod_l.c (round_and_return): Return ERANGE instead of
> EDOM.
> * stdlib/tst-strtod.c: Add testcase.
Uli, please commit the testcase as well.
Thanks,
Andreas
--
Andreas Jaeger, Program Manager openSUSE
aj@{suse.com,opensuse.org} Twitter/Identica: jaegerandi
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)
GPG fingerprint = 93A3 365E CE47 B889 DF7F FED1 389A 563C C272 A126