Commit 10537cb1 authored by Richard M. Stallman's avatar Richard M. Stallman

Include locale.h if HAVE_SETLOCALE.

(x_term_init): Restore LC_TIME as well as LC_NUMERIC.
parent c8644d7a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment