From 9dff7c532a8d6269891d0ff1113222e17559fa98 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Fri, 5 Apr 1996 18:15:53 +0000 Subject: [PATCH] (init_lread): Specify LC_NUMERIC locale. --- src/lread.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lread.c b/src/lread.c index 4c44949d5b1..4f0b5f62548 100644 --- a/src/lread.c +++ b/src/lread.c @@ -2233,6 +2233,11 @@ init_lread () char *normal; int turn_off_warning = 0; +#ifdef HAVE_SETLOCALE + /* Make sure numbers are parsed as we expect. */ + setlocale (LC_NUMERIC, "C"); +#endif /* HAVE_SETLOCALE */ + /* Compute the default load-path. */ #ifdef CANNOT_DUMP normal = PATH_LOADSEARCH; -- 2.39.2