diff options
| author | Kazuhiro Ito | 2024-03-02 08:44:56 +0900 |
|---|---|---|
| committer | Eli Zaretskii | 2024-03-02 09:01:47 +0200 |
| commit | f89cb6b63612a3dce113fa454fece82953fb5d5c (patch) | |
| tree | 467af4419efbb954cb4b44882528bd8213731e4f /lisp/language | |
| parent | 5e20b114ef32d504f4429fd35ecd0d5dcf3bd8db (diff) | |
| download | emacs-f89cb6b63612a3dce113fa454fece82953fb5d5c.tar.gz emacs-f89cb6b63612a3dce113fa454fece82953fb5d5c.zip | |
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)
Diffstat (limited to 'lisp/language')
| -rw-r--r-- | lisp/language/japan-util.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/language/japan-util.el b/lisp/language/japan-util.el index 93e8ab24971..b058eab7029 100644 --- a/lisp/language/japan-util.el +++ b/lisp/language/japan-util.el | |||
| @@ -29,8 +29,8 @@ | |||
| 29 | 29 | ||
| 30 | ;;;###autoload | 30 | ;;;###autoload |
| 31 | (defun setup-japanese-environment-internal () | 31 | (defun setup-japanese-environment-internal () |
| 32 | (prefer-coding-system (if (memq system-type '(windows-nt ms-dos cygwin)) | 32 | (prefer-coding-system (if (memq system-type '(windows-nt ms-dos)) |
| 33 | 'japanese-shift-jis | 33 | 'japanese-cp932 |
| 34 | 'utf-8)) | 34 | 'utf-8)) |
| 35 | (use-cjk-char-width-table 'ja_JP)) | 35 | (use-cjk-char-width-table 'ja_JP)) |
| 36 | 36 | ||