diff options
| author | Kenichi Handa | 2004-12-27 06:13:15 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2004-12-27 06:13:15 +0000 |
| commit | e314a6e4fe9d6d75c789d3efe84423738b8ef0d6 (patch) | |
| tree | a77674f2d02174e12b2d7a055dbefc012d259100 | |
| parent | b3ebb2d471ef474f0142637e5e5e4784247d51d7 (diff) | |
| download | emacs-e314a6e4fe9d6d75c789d3efe84423738b8ef0d6.tar.gz emacs-e314a6e4fe9d6d75c789d3efe84423738b8ef0d6.zip | |
(utf-translate-cjk-load-tables): Bind
coding-system-for-read to nil while loading subst-*.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/international/utf-8.el | 44 |
2 files changed, 29 insertions, 20 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 34fab033121..42fdf4869f9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2004-12-27 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * international/utf-8.el (utf-translate-cjk-load-tables): Bind | ||
| 4 | coding-system-for-read to nil while loading subst-*. | ||
| 5 | |||
| 1 | 2004-12-26 Jay Belanger <belanger@truman.edu> | 6 | 2004-12-26 Jay Belanger <belanger@truman.edu> |
| 2 | 7 | ||
| 3 | * calc/calc-store.el (calc-read-var-name): Remove "var-" from | 8 | * calc/calc-store.el (calc-read-var-name): Remove "var-" from |
diff --git a/lisp/international/utf-8.el b/lisp/international/utf-8.el index ed658eb3ddf..2fa096300d2 100644 --- a/lisp/international/utf-8.el +++ b/lisp/international/utf-8.el | |||
| @@ -305,26 +305,30 @@ use either \\[customize] or the function | |||
| 305 | ;; Load the files explicitly, to avoid having to keep | 305 | ;; Load the files explicitly, to avoid having to keep |
| 306 | ;; around the large tables they contain (as well as the | 306 | ;; around the large tables they contain (as well as the |
| 307 | ;; ones which get built). | 307 | ;; ones which get built). |
| 308 | (cond ((string= "Korean" current-language-environment) | 308 | ;; Here we bind coding-system-for-read to nil so that coding tags |
| 309 | (load "subst-jis") | 309 | ;; in the files are respected even if the files are not yet |
| 310 | (load "subst-big5") | 310 | ;; byte-compiled |
| 311 | (load "subst-gb2312") | 311 | (let ((coding-system-for-read nil)) |
| 312 | (load "subst-ksc")) | 312 | (cond ((string= "Korean" current-language-environment) |
| 313 | ((string= "Chinese-BIG5" current-language-environment) | 313 | (load "subst-jis") |
| 314 | (load "subst-jis") | 314 | (load "subst-big5") |
| 315 | (load "subst-ksc") | 315 | (load "subst-gb2312") |
| 316 | (load "subst-gb2312") | 316 | (load "subst-ksc")) |
| 317 | (load "subst-big5")) | 317 | ((string= "Chinese-BIG5" current-language-environment) |
| 318 | ((string= "Chinese-GB" current-language-environment) | 318 | (load "subst-jis") |
| 319 | (load "subst-jis") | 319 | (load "subst-ksc") |
| 320 | (load "subst-ksc") | 320 | (load "subst-gb2312") |
| 321 | (load "subst-big5") | 321 | (load "subst-big5")) |
| 322 | (load "subst-gb2312")) | 322 | ((string= "Chinese-GB" current-language-environment) |
| 323 | (t | 323 | (load "subst-jis") |
| 324 | (load "subst-ksc") | 324 | (load "subst-ksc") |
| 325 | (load "subst-gb2312") | 325 | (load "subst-big5") |
| 326 | (load "subst-big5") | 326 | (load "subst-gb2312")) |
| 327 | (load "subst-jis"))) ; jis covers as much as big5, gb2312 | 327 | (t |
| 328 | (load "subst-ksc") | ||
| 329 | (load "subst-gb2312") | ||
| 330 | (load "subst-big5") | ||
| 331 | (load "subst-jis")))) ; jis covers as much as big5, gb2312 | ||
| 328 | 332 | ||
| 329 | (when redefined | 333 | (when redefined |
| 330 | (define-translation-hash-table 'utf-subst-table-for-decode | 334 | (define-translation-hash-table 'utf-subst-table-for-decode |