diff lisp/international/code-pages.el @ 55469:df6db683f4f1

Fix last change.
author Jason Rumney <jasonr@gnu.org>
date Sun, 09 May 2004 15:39:00 +0000
parents 5fb7af7d17e8
children e131e8f2f9f2
line wrap: on
line diff
--- a/lisp/international/code-pages.el	Sun May 09 15:02:14 2004 +0000
+++ b/lisp/international/code-pages.el	Sun May 09 15:39:00 2004 +0000
@@ -4482,13 +4482,13 @@
   ?๐  ?๑  ?๒  ?๓  ?๔  ?๕  ?๖  ?๗  ?๘  ?๙  ?๚  ?๛   nil nil nil nil]
  "ISO-8859-11.  This is `thai-tis620' with the addition of no-break-space.")
 
-(dotimes (i 8)
+(dotimes (i 9)
   (let ((w (intern (format "windows-125%d" i)))
 	(c (intern (format "cp125%d" i))))
-    (if (coding-system-p c)		; 1251 is in cyrillic.el
-	(define-coding-system-alias c w)
-      (if (coding-system-p w)
-	  (define-coding-system-alias w c)))
+    ;; Define cp125* as aliases for all windows-125*, so on Windows
+    ;; we can just concat "cp" to the ANSI codepage we get from the system
+    ;; and not have to worry about whether it should be "cp" or "windows-".
+    (define-coding-system-alias c w)
     ;; Compatibility with codepage.el, though cp... are not the
     ;; canonical names.
     (push (assoc w non-iso-charset-alist) non-iso-charset-alist)))