summaryrefslogtreecommitdiff
path: root/lib/c-strtod.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-09-08 23:08:49 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-09-08 23:08:49 +0000
commitc8975c4954fb8ed0cea974e12ed6a38f4cc1c3f5 (patch)
tree878fdb141a90771285c127cfdb22ac676d5e0fc9 /lib/c-strtod.c
parentd261cd2332c8b3527e2a714beafa3948e558eaeb (diff)
downloadgnulib-c8975c4954fb8ed0cea974e12ed6a38f4cc1c3f5.tar.gz
Undo previous change.
Diffstat (limited to 'lib/c-strtod.c')
-rw-r--r--lib/c-strtod.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/c-strtod.c b/lib/c-strtod.c
index c9ebb8091b..ae0511034d 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);
}