Undo previous change.
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Sep 2004 23:08:49 +0000 (23:08 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 8 Sep 2004 23:08:49 +0000 (23:08 +0000)
lib/ChangeLog
lib/c-strtod.c

index 17b1be92536be3f5f89bcb9dfd020b85c49b1da9..19e6d5f5e44e2adfc1ad4a37c4925b5be97fe264 100644 (file)
@@ -1,10 +1,3 @@
-2004-09-08  Paul Eggert  <eggert@cs.ucla.edu>
-
-       * c-strtod.c (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.
-
 2004-09-08  Bruno Haible  <bruno@clisp.org>
 
        * stdint_.h.in: New file, taken from GNU clisp.
index c9ebb8091b9c91c1b767d7f171ef257bd8dbc17a..ae0511034d67c68d0fd711fa965a2e129329aa79 100644 (file)
@@ -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);
     }