# HG changeset patch # User Richard M. Stallman # Date 829005145 0 # Node ID 6ac4f300f9b4e294166b876895e9ea2ca9e69afe # Parent 75e7ffc5c547cb93ae6c4a4ee29b456a3cad205c Include locale.h if HAVE_SETLOCALE. (x_term_init): Restore LC_TIME as well as LC_NUMERIC. diff -r 75e7ffc5c547 -r 6ac4f300f9b4 src/xterm.c --- 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 #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