]> git.eshelyaron.com Git - emacs.git/commitdiff
(command-line): If already unibyte, just load
authorRichard M. Stallman <rms@gnu.org>
Fri, 3 Apr 1998 23:49:11 +0000 (23:49 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 3 Apr 1998 23:49:11 +0000 (23:49 +0000)
latin-N instead of calling set-language-environment.

lisp/startup.el

index 1f5c63d6993539c0154e5e0f6613b3e4982d4853..6d777541c262a69f26121a9d16d1e9181d889523 100644 (file)
@@ -483,10 +483,14 @@ from being initialized."
        (if (equal "5" which)
            (setq which "9"))
        (setq charset (concat "latin-" which))
-       ;; Set up for this character set in multibyte mode.
        (if (string-match "latin-[12345]" charset)
-           (set-language-environment charset))
-       (standard-display-european t charset))))
+           (if default-enable-multibyte-characters
+               ;; Set up for this character set in multibyte mode.
+               (set-language-environment charset)
+             ;; Set up for this character set in unibyte mode.
+             (load charset)))
+       (standard-display-european t (and default-enable-multibyte-characters
+                                         charset))))))
 
   ;;! This has been commented out; I currently find the behavior when
   ;;! split-window-keep-point is nil disturbing, but if I can get used