Mercurial > emacs
changeset 59096:2447136abfc1
(utf-translate-cjk-load-tables): Bind
coding-system-for-read to nil while loading subst-*.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Mon, 27 Dec 2004 06:11:02 +0000 |
parents | 8a2a99b47220 |
children | 00baca316918 |
files | lisp/international/utf-8.el |
diffstat | 1 files changed, 24 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/international/utf-8.el Mon Dec 27 05:51:40 2004 +0000 +++ b/lisp/international/utf-8.el Mon Dec 27 06:11:02 2004 +0000 @@ -305,26 +305,30 @@ ;; Load the files explicitly, to avoid having to keep ;; around the large tables they contain (as well as the ;; ones which get built). - (cond ((string= "Korean" current-language-environment) - (load "subst-jis") - (load "subst-big5") - (load "subst-gb2312") - (load "subst-ksc")) - ((string= "Chinese-BIG5" current-language-environment) - (load "subst-jis") - (load "subst-ksc") - (load "subst-gb2312") - (load "subst-big5")) - ((string= "Chinese-GB" current-language-environment) - (load "subst-jis") - (load "subst-ksc") - (load "subst-big5") - (load "subst-gb2312")) - (t - (load "subst-ksc") - (load "subst-gb2312") - (load "subst-big5") - (load "subst-jis"))) ; jis covers as much as big5, gb2312 + ;; Here we bind coding-system-for-read to nil so that coding tags + ;; in the files are respected even if the files are not yet + ;; byte-compiled + (let ((coding-system-for-read nil)) + (cond ((string= "Korean" current-language-environment) + (load "subst-jis") + (load "subst-big5") + (load "subst-gb2312") + (load "subst-ksc")) + ((string= "Chinese-BIG5" current-language-environment) + (load "subst-jis") + (load "subst-ksc") + (load "subst-gb2312") + (load "subst-big5")) + ((string= "Chinese-GB" current-language-environment) + (load "subst-jis") + (load "subst-ksc") + (load "subst-big5") + (load "subst-gb2312")) + (t + (load "subst-ksc") + (load "subst-gb2312") + (load "subst-big5") + (load "subst-jis")))) ; jis covers as much as big5, gb2312 (when redefined (define-translation-hash-table 'utf-subst-table-for-decode