1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-03 08:30:09 +00:00

Fix Japanese language environment on Cygwin and MS-Windows

* 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)
This commit is contained in:
Kazuhiro Ito 2024-03-02 08:44:56 +09:00 committed by Eli Zaretskii
parent 5e20b114ef
commit f89cb6b636

View 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))