diff options
| author | Jason Rumney | 2004-05-09 13:45:14 +0000 |
|---|---|---|
| committer | Jason Rumney | 2004-05-09 13:45:14 +0000 |
| commit | 35d95cf6c10eb019a27197ee3f1b133c91c1855d (patch) | |
| tree | 17a16928830a493acb735d46af0c3fb2f9247faa | |
| parent | 41d8e8b29d7adb12c26f3dae73a1f9ff56f10233 (diff) | |
| download | emacs-35d95cf6c10eb019a27197ee3f1b133c91c1855d.tar.gz emacs-35d95cf6c10eb019a27197ee3f1b133c91c1855d.zip | |
(cp932, cp936, cp949, cp950): Add aliases.
Also add cp125* if not already defined.
| -rw-r--r-- | lisp/international/code-pages.el | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/lisp/international/code-pages.el b/lisp/international/code-pages.el index ce88a88dac2..cb81c23b012 100644 --- a/lisp/international/code-pages.el +++ b/lisp/international/code-pages.el | |||
| @@ -4486,15 +4486,20 @@ Return an updated `non-iso-charset-alist'." | |||
| 4486 | (let ((w (intern (format "windows-125%d" i))) | 4486 | (let ((w (intern (format "windows-125%d" i))) |
| 4487 | (c (intern (format "cp125%d" i)))) | 4487 | (c (intern (format "cp125%d" i)))) |
| 4488 | (if (coding-system-p c) ; 1251 is in cyrillic.el | 4488 | (if (coding-system-p c) ; 1251 is in cyrillic.el |
| 4489 | (define-coding-system-alias c w)) | 4489 | (define-coding-system-alias c w) |
| 4490 | (if (coding-system-p w) | ||
| 4491 | (define-coding-system-alias w c))) | ||
| 4490 | ;; Compatibility with codepage.el, though cp... are not the | 4492 | ;; Compatibility with codepage.el, though cp... are not the |
| 4491 | ;; canonical names. | 4493 | ;; canonical names. |
| 4492 | (push (assoc w non-iso-charset-alist) non-iso-charset-alist))) | 4494 | (push (assoc w non-iso-charset-alist) non-iso-charset-alist))) |
| 4493 | 4495 | ||
| 4494 | ;; Use Unicode font under Windows. Jason Rumney fecit. | 4496 | ;; DOS/Windows codepages that correspond to coding systems already supported |
| 4495 | (if (fboundp 'w32-add-charset-info) | 4497 | ;; by Emacs. Only codepages used as system codepages are listed here, |
| 4496 | (unless (boundp 'w32-unicode-charset-defined) | 4498 | ;; to assist in finding the appropriate coding-system for clipboard etc. |
| 4497 | (w32-add-charset-info "iso10646-1" 'w32-charset-ansi t))) | 4499 | (define-coding-system-alias 'cp932 'japanese-shift-jis) |
| 4500 | (define-coding-system-alias 'cp936 'chinese-iso-8bit) | ||
| 4501 | (define-coding-system-alias 'cp949 'korean-iso-8bit) | ||
| 4502 | (define-coding-system-alias 'cp950 'chinese-big5) | ||
| 4498 | 4503 | ||
| 4499 | (provide 'code-pages) | 4504 | (provide 'code-pages) |
| 4500 | 4505 | ||