diff options
author | Richard M. Stallman <rms@gnu.org> | 1996-04-08 23:12:25 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1996-04-08 23:12:25 +0000 |
commit | 4ab4ad0969c5957dc61d4a5956b4bf4a81e9ba06 (patch) | |
tree | 60f4d11c02812038d5ca14a9d729d72d898f79a9 /src/xterm.c | |
parent | 1976199f8cbe1a49fd61eb576fa3d73672f7770f (diff) | |
download | emacs-4ab4ad0969c5957dc61d4a5956b4bf4a81e9ba06.tar.gz |
Include locale.h if HAVE_SETLOCALE.
(x_term_init): Restore LC_TIME as well as LC_NUMERIC.
Diffstat (limited to 'src/xterm.c')
-rw-r--r-- | src/xterm.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/xterm.c b/src/xterm.c index 080afbcccfb..62deeeb1e55 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -105,7 +105,7 @@ extern void _XEditResCheckMessages (); #endif #endif -#ifdef HAVE_X11XTR6 +#ifdef HAVE_SETLOCALE /* So we can do setlocale. */ #include <locale.h> #endif @@ -5891,6 +5891,7 @@ x_term_init (display_name, xrm_option, resource_name) setlocale (LC_ALL, ""); /* In case we just overrode what init_lread did, redo it. */ setlocale (LC_NUMERIC, "C"); + setlocale (LC_TIME, "C"); #endif #ifdef USE_X_TOOLKIT @@ -5920,6 +5921,7 @@ x_term_init (display_name, xrm_option, resource_name) &argc, argv); #ifdef HAVE_X11XTR6 + /* I think this is to compensate for XtSetLanguageProc. */ setlocale (LC_NUMERIC, "C"); setlocale (LC_TIME, "C"); #endif |