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:
@ -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
|
||||
|
Reference in New Issue
Block a user