]> git.eshelyaron.com Git - emacs.git/commitdiff
Mention Japanese change in documentation
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jan 2019 00:16:46 +0000 (16:16 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 10 Jan 2019 00:17:28 +0000 (16:17 -0800)
doc/emacs/mule.texi
etc/NEWS
lisp/language/japan-util.el

index b3e7d218c6238ef678ae287a66f778ad215aa6d6..6a26667510afdc30cdec77d3f21696dc139c608a 100644 (file)
@@ -397,7 +397,7 @@ messages.  But if your locale matches an entry in the variable
 coding system instead.  For example, if the locale @samp{ja_JP.PCK}
 matches @code{japanese-shift-jis} in
 @code{locale-preferred-coding-systems}, Emacs uses that encoding even
-though it might normally use @code{japanese-iso-8bit}.
+though it might normally use @code{utf-8}.
 
   You can override the language environment chosen at startup with
 explicit use of the command @code{set-language-environment}, or with
index 3670ab5bf44943fc5821a45450d702aa373ec940..6a91017e59702f73ea9cc531d7d14254f56f58e1 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -217,6 +217,11 @@ regular expression was previously invalid, but is now accepted:
 ---
 ** New input methods 'hawaiian-postfix' and 'hawaiian-prefix'.
 
++++
+** In Japanese environments that do not specify encodings and are not
+based on MS-Windows, the default encoding is now utf-8 instead of
+japanese-iso-8bit.
+
 +++
 ** New function 'exec-path'.
 This function by default returns the value of the corresponding
index 6d87303ba126b6c522ab21a1df9e7acfe054b41d..b1eb3d9127b7283f81bce6ce5a48bcf32e6fe913 100644 (file)
 
 ;;;###autoload
 (defun setup-japanese-environment-internal ()
-  ;; 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 'utf-8))
+  (prefer-coding-system (if (memq system-type '(windows-nt ms-dos cygwin))
+                           'japanese-shift-jis
+                         'utf-8))
   (use-cjk-char-width-table 'ja_JP))
 
 (defconst japanese-kana-table