]> code.delx.au - gnu-emacs/blobdiff - src/emacs.c
js-mode: Don't indent inside a multiline string literal
[gnu-emacs] / src / emacs.c
index d318fd4649a0b0e3c2d41b8f4734a57069cb4bb8..70db900246a93a2194541e323b7b03c041e02ab1 100644 (file)
@@ -2152,6 +2152,13 @@ synchronize_locale (int category, Lisp_Object *plocale, Lisp_Object desired_loca
 {
   if (! EQ (*plocale, desired_locale))
     {
+#ifdef WINDOWSNT
+      /* Changing categories like LC_TIME usually requires to specify
+        an encoding suitable for the new locale, but MS-Windows's
+        'setlocale' will only switch the encoding when LC_ALL is
+        specified.  So we ignore CATEGORY and use LC_ALL instead.  */
+      category = LC_ALL;
+#endif
       *plocale = desired_locale;
       setlocale (category, (STRINGP (desired_locale)
                            ? SSDATA (desired_locale)