diff options
| author | Richard M. Stallman | 1996-04-05 18:15:53 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-04-05 18:15:53 +0000 |
| commit | 9dff7c532a8d6269891d0ff1113222e17559fa98 (patch) | |
| tree | 88b39d1c89d614b54bdb2a91952ed9d17ec279f4 /src | |
| parent | 0f8b42b1afb40e918f3fc413d1236d0cad16ca1a (diff) | |
| download | emacs-9dff7c532a8d6269891d0ff1113222e17559fa98.tar.gz emacs-9dff7c532a8d6269891d0ff1113222e17559fa98.zip | |
(init_lread): Specify LC_NUMERIC locale.
Diffstat (limited to 'src')
| -rw-r--r-- | src/lread.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 () | |||
| 2233 | char *normal; | 2233 | char *normal; |
| 2234 | int turn_off_warning = 0; | 2234 | int turn_off_warning = 0; |
| 2235 | 2235 | ||
| 2236 | #ifdef HAVE_SETLOCALE | ||
| 2237 | /* Make sure numbers are parsed as we expect. */ | ||
| 2238 | setlocale (LC_NUMERIC, "C"); | ||
| 2239 | #endif /* HAVE_SETLOCALE */ | ||
| 2240 | |||
| 2236 | /* Compute the default load-path. */ | 2241 | /* Compute the default load-path. */ |
| 2237 | #ifdef CANNOT_DUMP | 2242 | #ifdef CANNOT_DUMP |
| 2238 | normal = PATH_LOADSEARCH; | 2243 | normal = PATH_LOADSEARCH; |