From 3070e8cd0811820167cbf0b2bf61d7fd5003fe48 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 8 Sep 2004 23:07:04 +0000 Subject: Undo previous change. --- lib/ChangeLog | 7 ------- lib/c-strtod.c | 6 +++--- 2 files changed, 3 insertions(+), 10 deletions(-) (limited to 'lib') diff --git a/lib/ChangeLog b/lib/ChangeLog index 4e2eb509f..6d59771ab 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,10 +1,3 @@ -2004-09-08 Paul Eggert - - * 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-02 Paul Eggert Port to diet libc. Problem reported by Felix von Leitner in 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); } -- cgit v1.2.3-54-g00ecf