# HG changeset patch # User Paul Eggert # Date 1094663817 0 # Node ID 2478b4759f972f82d936a4457a350a8344c14c7e # Parent c900cc84cf3f84eb01ab03c83f2f2a1d71409e51 (C_STRTOD) [!defined LC_ALL_MASK]: Set LC_ALL to "C", not just LC_NUMERIC, to avoid the unlikely possibility of mixed locales screwing things up. This removes an inconsistency with the LC_ALL_MASK case. diff --git a/lib/c-strtod.c b/lib/c-strtod.c --- a/lib/c-strtod.c +++ b/lib/c-strtod.c @@ -59,19 +59,19 @@ #else - char *saved_locale = setlocale (LC_NUMERIC, NULL); + char *saved_locale = setlocale (LC_ALL, NULL); if (saved_locale) { saved_locale = xstrdup (saved_locale); - setlocale (LC_NUMERIC, "C"); + setlocale (LC_ALL, "C"); } r = STRTOD (nptr, endptr); if (saved_locale) { - setlocale (LC_NUMERIC, saved_locale); + setlocale (LC_ALL, saved_locale); free (saved_locale); }