Mercurial > emacs
comparison lisp/international/code-pages.el @ 55464:5fb7af7d17e8
(cp932, cp936, cp949, cp950): Add aliases.
Also add cp125* if not already defined.
author | Jason Rumney <jasonr@gnu.org> |
---|---|
date | Sun, 09 May 2004 13:45:14 +0000 |
parents | ff3ace564547 |
children | df6db683f4f1 |
comparison
equal
deleted
inserted
replaced
55463:843ab503fee2 | 55464:5fb7af7d17e8 |
---|---|
4484 | 4484 |
4485 (dotimes (i 8) | 4485 (dotimes (i 8) |
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 |
4501 ;;; arch-tag: 8b6e3c73-b271-4198-866d-ea6d0ceff1b2 | 4506 ;;; arch-tag: 8b6e3c73-b271-4198-866d-ea6d0ceff1b2 |
4502 ;;; code-pages.el ends here | 4507 ;;; code-pages.el ends here |