emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/international/codepage.el


From: Dave Love
Subject: [Emacs-diffs] Changes to emacs/lisp/international/codepage.el
Date: Thu, 04 Sep 2003 12:59:46 -0400

Index: emacs/lisp/international/codepage.el
diff -c emacs/lisp/international/codepage.el:1.28 
emacs/lisp/international/codepage.el:1.29
*** emacs/lisp/international/codepage.el:1.28   Mon Sep  1 11:45:28 2003
--- emacs/lisp/international/codepage.el        Thu Sep  4 12:59:46 2003
***************
*** 666,671 ****
--- 666,690 ----
        (cp-make-coding-systems-for-codepage
         cp (cp-charset-for-codepage cp) (cp-offset-for-codepage cp)))))
  
+ ;; Add DOS codepages to `non-iso-charset-alist'.
+ (eval-after-load "mule-diag"
+   '(let ((tail (cp-supported-codepages))
+        elt)
+      (while tail
+        (setq elt (car tail) tail (cdr tail))
+        ;; Now ELT is (CODEPAGE . CHARSET), where CODEPAGE is a string
+        ;; (e.g. "850"), CHARSET is a charset that characters in CODEPAGE
+        ;; are mapped to.
+        (unless (assq (intern (concat "cp" (car elt))) non-iso-charset-alist)
+        (setq non-iso-charset-alist
+              (cons (list (intern (concat "cp" (car elt)))
+                          (list 'ascii (cdr elt))
+                          `(lambda (code)
+                             (decode-codepage-char ,(string-to-int (car elt))
+                                                   code))
+                          (list (list 0 255)))
+                    non-iso-charset-alist))))))
+ 
  (provide 'codepage)
  
  ;;; arch-tag: 80328de8-b94e-4386-be26-5876105731f0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]