Mercurial > emacs
changeset 14963:6ac4f300f9b4
Include locale.h if HAVE_SETLOCALE.
(x_term_init): Restore LC_TIME as well as LC_NUMERIC.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 08 Apr 1996 23:12:25 +0000 |
parents | 75e7ffc5c547 |
children | 9938201005a3 |
files | src/xterm.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xterm.c Mon Apr 08 23:02:15 1996 +0000 +++ b/src/xterm.c Mon Apr 08 23:12:25 1996 +0000 @@ -105,7 +105,7 @@ #endif #endif -#ifdef HAVE_X11XTR6 +#ifdef HAVE_SETLOCALE /* So we can do setlocale. */ #include <locale.h> #endif @@ -5891,6 +5891,7 @@ 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 @@ &argc, argv); #ifdef HAVE_X11XTR6 + /* I think this is to compensate for XtSetLanguageProc. */ setlocale (LC_NUMERIC, "C"); setlocale (LC_TIME, "C"); #endif