]> git.eshelyaron.com Git - emacs.git/commitdiff
Change preferred Japanese coding system to UTF-8
authorYasuhiro KIMURA <yasu@utahime.org>
Wed, 9 Jan 2019 23:44:10 +0000 (15:44 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jan 2019 00:17:28 +0000 (16:17 -0800)
* 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.

lisp/language/japan-util.el

index 5d6f5374071528fd6cc247e0dff8698a810f34e6..6d87303ba126b6c522ab21a1df9e7acfe054b41d 100644 (file)
 
 ;;;###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