mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
Undo previous change.
This commit is contained in:
1 parent
9c8402de4c
commit
3070e8cd08
2 files changed
+3
-10
No files matched your search
@@ -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-02 Paul Eggert <eggert@cs.ucla.edu>
|
||||
|
||||
Port to diet libc. Problem reported by Felix von Leitner in
|
||||
|
||||
+3
-3
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user