diff options
author | Yasuhiro KIMURA <yasu@utahime.org> | 2019-01-09 15:44:10 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-01-09 16:17:28 -0800 |
commit | a57ee3dad6d6f12a7236a783a91148e349ad601e (patch) | |
tree | ce12e9925a1066a44472a245512112b255707508 /lisp/language/japan-util.el | |
parent | a84650334e30b2451bf4a8957bf2d57ade296d4e (diff) | |
download | emacs-a57ee3dad6d6f12a7236a783a91148e349ad601e.tar.gz |
Change preferred Japanese coding system to UTF-8
* lisp/language/japan-util.el (setup-japanese-environment-internal):
Use utf-8 as preferred coding system instead of japanese-iso-8bit when
system is not MS-Windows. And while I'm at it, fix comment to fit current
implementation. (Bug#28705)
Copyright-paperwork-exempt: yes.
Diffstat (limited to 'lisp/language/japan-util.el')
-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 5d6f5374071..6d87303ba12 100644 --- a/lisp/language/japan-util.el +++ b/lisp/language/japan-util.el @@ -29,11 +29,11 @@ ;;;###autoload (defun setup-japanese-environment-internal () - ;; By default, we use 'japanese-iso-8bit for file names. But, the + ;; By default, we use 'iso-2022-jp for default coding system. But, the ;; following prefer-coding-system will override it. (if (memq system-type '(windows-nt ms-dos cygwin)) (prefer-coding-system 'japanese-shift-jis) - (prefer-coding-system 'japanese-iso-8bit)) + (prefer-coding-system 'utf-8)) (use-cjk-char-width-table 'ja_JP)) (defconst japanese-kana-table |