]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Japanese language environment on Cygwin and MS-Windows
authorKazuhiro Ito <kzhr@d1.dion.ne.jp>
Fri, 1 Mar 2024 23:44:56 +0000 (08:44 +0900)
committerEshel Yaron <me@eshelyaron.com>
Sun, 3 Mar 2024 17:04:44 +0000 (18:04 +0100)
* lisp/language/japan-util.el
(setup-japanese-environment-internal): Prefer UTF-8 for Cygwin and
other Posix hosts; prefer Codepage 932 on DOS/Windows.  (Bug#69493)

(cherry picked from commit f89cb6b63612a3dce113fa454fece82953fb5d5c)

lisp/language/japan-util.el

index 93e8ab249710bafaf70053557490f6762e67ae19..b058eab7029e290e875e2433a68f6b4dcc44f6bc 100644 (file)
@@ -29,8 +29,8 @@
 
 ;;;###autoload
 (defun setup-japanese-environment-internal ()
-  (prefer-coding-system (if (memq system-type '(windows-nt ms-dos cygwin))
-                           'japanese-shift-jis
+  (prefer-coding-system (if (memq system-type '(windows-nt ms-dos))
+                           'japanese-cp932
                          'utf-8))
   (use-cjk-char-width-table 'ja_JP))