Another small fix I recently applied to the SuSE xemacs package:
- use the correct encoding for the output of
'LC_ALL=ja_JP.eucJP xemacs --help',
'LC_ALL=ja_JP.UTF-8 xemacs --help', and
'LC_ALL=ja_JP.SJIS xemacs --help'.
Patches is here:
--- packages/mule-packages/locale/start-files/ja/locale-start.el 2000-03-10
08:41:32.000000000 +0100
+++ packages.new/mule-packages/locale/start-files/ja/locale-start.el 2002-08-19
23:35:24.000000000 +0200
@@ -78,6 +78,14 @@
(defun command-line-do-help (arg)
"Print the XEmacs usage message and exit."
+ (let ((charmap (shell-command-to-string "locale charmap")))
+ (cond ((string-match "UTF-8" charmap)
+ (require 'un-define)
+ (set-terminal-coding-system 'utf-8))
+ ((string-match "EUC-JP" charmap)
+ (set-terminal-coding-system 'euc-jp))
+ ((string-match "SHIFT_JIS" charmap)
+ (set-terminal-coding-system 'shift_jis))))
(let ((standard-output 'external-debugging-output))
(princ (concat "\n" (emacs-version) "\n\n"))
(princ
--
Mike Fabian <mfabian(a)suse.de>
http://www.suse.de/~mfabian
睡眠不足はいい仕事の敵だ。