summaryrefslogtreecommitdiff
path: root/lisp/language/japan-util.el
diff options
context:
space:
mode:
authorYasuhiro KIMURA <yasu@utahime.org>2019-01-09 15:44:10 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2019-01-09 16:17:28 -0800
commita57ee3dad6d6f12a7236a783a91148e349ad601e (patch)
treece12e9925a1066a44472a245512112b255707508 /lisp/language/japan-util.el
parenta84650334e30b2451bf4a8957bf2d57ade296d4e (diff)
downloademacs-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.el4
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