diff options
Diffstat (limited to 'lib/c-strtod.c')
-rw-r--r-- | lib/c-strtod.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/c-strtod.c b/lib/c-strtod.c index c9ebb8091..ae0511034 100644 --- a/lib/c-strtod.c +++ b/lib/c-strtod.c @@ -59,19 +59,19 @@ C_STRTOD (char const *nptr, char **endptr) #else - char *saved_locale = setlocale (LC_ALL, NULL); + char *saved_locale = setlocale (LC_NUMERIC, NULL); if (saved_locale) { saved_locale = xstrdup (saved_locale); - setlocale (LC_ALL, "C"); + setlocale (LC_NUMERIC, "C"); } r = STRTOD (nptr, endptr); if (saved_locale) { - setlocale (LC_ALL, saved_locale); + setlocale (LC_NUMERIC, saved_locale); free (saved_locale); } |