]> git.eshelyaron.com Git - emacs.git/commitdiff
(set-language-environment): Check
authorDave Love <fx@gnu.org>
Sat, 5 Oct 2002 19:04:00 +0000 (19:04 +0000)
committerDave Love <fx@gnu.org>
Sat, 5 Oct 2002 19:04:00 +0000 (19:04 +0000)
for charset property of environment.

lisp/international/mule-cmds.el

index 7c1b1a13737f9c49bd5da1da1c12069d2bf83295..6e925d33cf463b5945cfe43894f4ba11ca14a8d0 100644 (file)
@@ -1442,7 +1442,9 @@ specifies the character set for the major languages of Western Europe."
 
   ;; Fixme: default from the environment coding system where that's
   ;; charset-based.
-  (apply 'set-charset-priority  (get-language-info language-name 'charset))
+  (if (get-language-info language-name 'charset)
+      (apply 'set-charset-priority  (get-language-info language-name
+                                                      'charset)))
 
   ;; Note: For DOS, we assumed that the charset cpXXX is already
   ;; defined.