changeset 5223:eceaa40c3485

Undo previous change.
author Paul Eggert <eggert@cs.ucla.edu>
date Wed, 08 Sep 2004 23:08:49 +0000
parents faa68f81fc91
children b6d1a221c907
files lib/ChangeLog lib/c-strtod.c
diffstat 2 files changed, 3 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -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.
--- a/lib/c-strtod.c
+++ b/lib/c-strtod.c
@@ -59,19 +59,19 @@
 
 #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);
     }