From: Kazuhiro Ito <kzhr@d1.dion.ne.jp>
To: 69493@debbugs.gnu.org
Subject: bug#69493: 30.0.50; Preferable choice of coding system on Japanese
Date: Sat, 02 Mar 2024 08:44:56 +0900 [thread overview]
Message-ID: <85y1b134av.wl--xmue@d1.dion.ne.jp> (raw)
When I call (set-language-environment "Japanese"), below code in
lisp/language/japan-util.el is called.
(defun setup-japanese-environment-internal ()
(prefer-coding-system (if (memq system-type '(windows-nt ms-dos cygwin))
'japanese-shift-jis
'utf-8))
(use-cjk-char-width-table 'ja_JP))
1. japanese-shift-jis is not proper coding system on Cygwin.
2. We have japanese-cp932, more appropriate coding system for DOS/Windows.
PLease see below patch.
diff --git a/lisp/language/japan-util.el b/lisp/language/japan-util.el
index 93e8ab24971..f3ec44bf75d 100644
--- a/lisp/language/japan-util.el
+++ b/lisp/language/japan-util.el
@@ -29,8 +29,8 @@
;;;###autoload
(defun setup-japanese-environment-internal ()
- (prefer-coding-system (if (memq system-type '(windows-nt ms-dos cygwin))
- 'japanese-shift-jis
+ (prefer-coding-system (if (memq system-type '(windows-nt ms-dos))
+ 'japanese-cp932
'utf-8))
(use-cjk-char-width-table 'ja_JP))
--
Kazuhiro Ito
next reply other threads:[~2024-03-01 23:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-01 23:44 Kazuhiro Ito [this message]
2024-03-02 7:07 ` bug#69493: 30.0.50; Preferable choice of coding system on Japanese Eli Zaretskii
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85y1b134av.wl--xmue@d1.dion.ne.jp \
--to=kzhr@d1.dion.ne.jp \
--cc=69493@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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.