unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#28705: 25.3; [PATCH] Change prefered coding system for Japanese language environment
@ 2017-10-04 11:02 Yasuhiro KIMURA
  2017-10-06 21:10 ` Paul Eggert
  0 siblings, 1 reply; 4+ messages in thread
From: Yasuhiro KIMURA @ 2017-10-04 11:02 UTC (permalink / raw)
  To: 28705

[-- Attachment #1: Type: Text/Plain, Size: 380 bytes --]

In current implementation, 'japanese-iso-8bit' is used as prefered
coding system when you select 'Japanese' as language environment on
Unix system. But nowaday a lot of Japanese Unix users adopt
'ja_JP.UTF-8' as locale setting. So I propose to change prefered
coding system from 'japanese-iso-8bit' to 'utf-8'. And while I'm on
it, comment is fixed to fit current implementation.

[-- Attachment #2: 0001-Change-prefered-coding-system-for-Japanese-language-.patch --]
[-- Type: Text/X-Patch, Size: 1288 bytes --]

From 2c80312989659375f82d7eefd333e5ac77663f4b Mon Sep 17 00:00:00 2001
From: Yasuhiro KIMURA <yasu@utahime.org>
Date: Wed, 4 Oct 2017 19:09:21 +0900
Subject: [PATCH] Change prefered coding system for Japanese language
 environment.

* lisp/language/japan-util.el (setup-japanese-environment-internal):
  Use utf-8 as prefered coding system instead of japanese-iso-8bit
  when system is not windows. And while I'm at it, fix comment to fit
  current implementation.
---
 lisp/language/japan-util.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/language/japan-util.el b/lisp/language/japan-util.el
index 988b925409..fb4b408cd3 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
-- 
2.14.2


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-01-10  0:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-04 11:02 bug#28705: 25.3; [PATCH] Change prefered coding system for Japanese language environment Yasuhiro KIMURA
2017-10-06 21:10 ` Paul Eggert
2019-01-09  0:28   ` Glenn Morris
2019-01-10  0:20     ` Paul Eggert

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).