diff options
author | Ulrich Drepper <drepper@redhat.com> | 2006-12-11 21:43:56 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2006-12-11 21:43:56 +0000 |
commit | 1f55ce483b6f14da23383d7a192a0a9d6b99b7de (patch) | |
tree | a789a1908dd3aa2f2f9489cf08340320e1d48b27 /stdlib/strtod_l.c | |
parent | f85fb97b9bdd59c6d7b105e81b72b7b69a9647e1 (diff) | |
download | glibc-1f55ce483b6f14da23383d7a192a0a9d6b99b7de.tar glibc-1f55ce483b6f14da23383d7a192a0a9d6b99b7de.tar.gz glibc-1f55ce483b6f14da23383d7a192a0a9d6b99b7de.tar.bz2 glibc-1f55ce483b6f14da23383d7a192a0a9d6b99b7de.zip |
* stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand
separators also if no non-zero digits found.
* stdlib/Makefile (tests): Add tst-strtod3.
Diffstat (limited to 'stdlib/strtod_l.c')
-rw-r--r-- | stdlib/strtod_l.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/stdlib/strtod_l.c b/stdlib/strtod_l.c index b926aeba56..b4e4819c87 100644 --- a/stdlib/strtod_l.c +++ b/stdlib/strtod_l.c @@ -721,7 +721,7 @@ ____STRTOF_INTERNAL (nptr, endptr, group, loc) c = *++cp; } - if (grouping && dig_no > 0) + if (grouping && cp > start_of_digits) { /* Check the grouping of the digits. */ #ifdef USE_WIDE_CHAR |