Mercurial > emacs
changeset 22565:3d2804459d84
(set-language-environment): Allow all language environments, even in
unibyte mode. But set the terminal coding system only in the known few.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 24 Jun 1998 05:25:01 +0000 |
parents | 4836a83d3578 |
children | a9b9f92d0f4d |
files | lisp/international/mule-cmds.el |
diffstat | 1 files changed, 5 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/international/mule-cmds.el Wed Jun 24 05:10:54 1998 +0000 +++ b/lisp/international/mule-cmds.el Wed Jun 24 05:25:01 1998 +0000 @@ -880,19 +880,16 @@ (setq language-name "English")) (if (null (get-language-info language-name 'setup-function)) (error "Language environment not defined: %S" language-name)) - (unless default-enable-multibyte-characters - (or (member (downcase language-name) - '("latin-1" "latin-2" "latin-3" "latin-4" "latin-5")) - (error "Language environment `%s' not supported in unibyte mode" - language-name)) - (set-terminal-coding-system (intern (downcase language-name))) - (standard-display-european-internal)) - (if current-language-environment (let ((func (get-language-info current-language-environment 'exit-function))) (run-hooks 'exit-language-environment-hook) (if (fboundp func) (funcall func)))) + (when (and (not default-enable-multibyte-characters) + (member (downcase language-name) + '("latin-1" "latin-2" "latin-3" "latin-4" "latin-5"))) + (set-terminal-coding-system (intern (downcase language-name))) + (standard-display-european-internal)) (setq current-language-environment language-name) (funcall (get-language-info language-name 'setup-function)) (run-hooks 'set-language-environment-hook)