Mercurial > emacs
comparison lisp/term/internal.el @ 28807:f3cc4443dca2
(cjk-codepages-alist): Add associations for
Chinese and Korean codepages.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Thu, 04 May 2000 16:10:10 +0000 |
parents | 9f3d02d7daa8 |
children | 13e4716deef5 |
comparison
equal
deleted
inserted
replaced
28806:d4a600512af7 | 28807:f3cc4443dca2 |
---|---|
325 ;; all the codepages). So I provide a hook for those who want to | 325 ;; all the codepages). So I provide a hook for those who want to |
326 ;; squeeze every bit of support out of their terminal/font. | 326 ;; squeeze every bit of support out of their terminal/font. |
327 (run-hooks 'dos-codepage-setup-hook) | 327 (run-hooks 'dos-codepage-setup-hook) |
328 )) | 328 )) |
329 | 329 |
330 ;; FIXME: Korean and Chinese codepages should be added here, but I | |
331 ;; don't know what coding systems do they support. The codepages in | |
332 ;; point are 934, 936, 938, 944, and 948. | |
333 (defvar cjk-codepages-alist | 330 (defvar cjk-codepages-alist |
334 '((932 "Japanese" japanese-shift-jis)) | 331 '((932 "Japanese" japanese-shift-jis) |
332 (950 "Chinese-BIG5" cn-big5) | |
333 (936 "Chinese-GB" cn-gb-2312) | |
334 (949 "Korean" euc-kr)) | |
335 "An alist of Far-Eastern codepages and the names of the associated | 335 "An alist of Far-Eastern codepages and the names of the associated |
336 language and supported coding system.") | 336 language and supported coding system.") |
337 | 337 |
338 (defun dos-codepage-setup () | 338 (defun dos-codepage-setup () |
339 "Set up the MULE environment as appropriate for the installed DOS codepage. | 339 "Set up the MULE environment as appropriate for the installed DOS codepage. |
353 (dos-cpNNN-setup dos-codepage) | 353 (dos-cpNNN-setup dos-codepage) |
354 ;; We've got one of the Far-Eastern codepages which support | 354 ;; We've got one of the Far-Eastern codepages which support |
355 ;; MULE native coding systems directly. | 355 ;; MULE native coding systems directly. |
356 (setq coding-dos (intern (format "%s-dos" coding)) | 356 (setq coding-dos (intern (format "%s-dos" coding)) |
357 coding-unix (intern (format "%s-unix" coding))) | 357 coding-unix (intern (format "%s-unix" coding))) |
358 (set-language-environment (car desc)) | 358 (set-language-environment lang) |
359 (set-selection-coding-system coding-dos) | 359 (set-selection-coding-system coding-dos) |
360 (setq file-name-coding-system coding-unix) | 360 (setq file-name-coding-system coding-unix) |
361 (set-terminal-coding-system | 361 (set-terminal-coding-system |
362 (setq default-terminal-coding-system coding-unix)) | 362 (setq default-terminal-coding-system coding-unix)) |
363 ;; Assume they support non-ASCII Latin characters like the IBM | 363 ;; Assume they support non-ASCII Latin characters like the IBM |