unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Yasuhiro KIMURA <yasu@utahime.org>
To: 28705@debbugs.gnu.org
Subject: bug#28705: 25.3; [PATCH] Change prefered coding system for Japanese language environment
Date: Wed, 04 Oct 2017 20:02:54 +0900 (JST)	[thread overview]
Message-ID: <20171004.200254.1802538916766305777.yasu@utahime.org> (raw)

[-- 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


             reply	other threads:[~2017-10-04 11:02 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-04 11:02 Yasuhiro KIMURA [this message]
2017-10-06 21:10 ` bug#28705: 25.3; [PATCH] Change prefered coding system for Japanese language environment Paul Eggert
2019-01-09  0:28   ` Glenn Morris
2019-01-10  0:20     ` Paul Eggert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171004.200254.1802538916766305777.yasu@utahime.org \
    --to=yasu@utahime.org \
    --cc=28705@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).