1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-28 00:21:52 +03:00

* stdlib/strtod_l.c (____STRTOF_INTERNAL): Parse thousand

separators also if no non-zero digits found.
	* stdlib/Makefile (tests): Add tst-strtod3.
This commit is contained in:
Ulrich Drepper
2006-12-11 21:43:56 +00:00
parent f85fb97b9b
commit 1f55ce483b
6 changed files with 107 additions and 2 deletions

View File

@ -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