changeset 19137:f8aebb949291

(setup-japanese-environment): Do not call set-terminal-coding-system and set-keyboard-coding-system, instead call set-defualt-coding-systems.
author Kenichi Handa <handa@m17n.org>
date Mon, 04 Aug 1997 07:01:31 +0000
parents a036a16c0114
children 4792b6db181d
files lisp/language/japan-util.el
diffstat 1 files changed, 5 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/language/japan-util.el	Mon Aug 04 07:01:31 1997 +0000
+++ b/lisp/language/japan-util.el	Mon Aug 04 07:01:31 1997 +0000
@@ -29,6 +29,7 @@
   "Setup multilingual environment (MULE) for Japanese."
   (interactive)
   (setup-english-environment)
+
   (setq coding-category-iso-8-2 'japanese-iso-8bit)
 
   (set-coding-priority
@@ -40,16 +41,10 @@
      coding-category-iso-8-else
      coding-category-emacs-mule))
 
-  (if (eq system-type 'ms-dos)
-      (progn
-	(setq-default buffer-file-coding-system 'japanese-shift-jis)
-	(set-terminal-coding-system-internal 'japanese-shift-jis)
-	(set-keyboard-coding-system-internal 'japanese-shift-jis)
-	(setq default-process-coding-system
-	      '(japanese-shift-jis-dos . japanese-shift-jis-dos)))
-    (setq-default buffer-file-coding-system 'iso-2022-7bit)
-    (set-terminal-coding-system-internal 'iso-2022-7bit)
-    (set-keyboard-coding-system-internal 'iso-2022-7bit))
+  (set-default-coding-systems
+   (if (eq system-type 'ms-dos)
+       'japanese-shift-jis
+     'iso-2022-7bit))
 
   (setq default-input-method "japanese")
   (setq-default default-input-method "japanese")