]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Make it work again wih XEmacs.
authorBruno Haible <bruno@clisp.org>
Tue, 18 Feb 2003 13:16:47 +0000 (13:16 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:10 +0000 (12:10 +0200)
gettext-tools/misc/ChangeLog
gettext-tools/misc/po-compat.el

index 73aade5f2b88523e88ca618eb1e3fdbf5e94a71c..a6a984a380e3603678a841f3de6cc76c59f0ba4f 100644 (file)
@@ -1,3 +1,10 @@
+2003-02-16  Bruno Haible  <bruno@clisp.org>
+
+       * po-compat.el: Add testing instructions.
+       (po-find-file-coding-system-guts) [XEMACS]: Make it work again,
+       after (car (nth i po-content-type-charset-alist)) changed from symbol
+       to string.
+
 2003-02-12  Bruno Haible  <bruno@clisp.org>
 
        * elisp-comp: Move to ../../config/elisp-comp.
index 67fc6ac2746cab35e1c949cf83b8b743e5b87d4c..e5dde5cfc46e5f12e81db2a821f1431264aee6b0 100644 (file)
@@ -221,10 +221,10 @@ Called through file-coding-system-alist, before the file is visited for real."
               (let ((coding-system-for-read 'no-conversion))
                  (let* ((charset (or (po-find-charset filename)
                                     "ascii"))
-                        (charset-upper (intern (upcase charset)))
+                        (charset-upper (upcase charset))
                         (charset-lower (intern (downcase charset))))
-                   (list (or (cdr (assq charset-upper
-                                        po-content-type-charset-alist))
+                   (list (or (cdr (assoc charset-upper
+                                         po-content-type-charset-alist))
                              (if (memq charset-lower (coding-system-list))
                                  charset-lower
                                'no-conversion)))))))))
@@ -247,4 +247,17 @@ Called through file-coding-system-alist, before the file is visited for real."
 
 (provide 'po-compat)
 
+;;; Testing this file:
+
+;; For each emacsimpl in { emacs, xemacs } do
+;;   For each pofile in {
+;;     cs.po           ; gettext/po/cs.el, charset=ISO-8859-2
+;;     cs-modified.po  ; gettext/po/cs.el, charset=ISO_8859-2
+;;     de.po           ; gettext/po/de.el, charset=UTF-8, if $emacsimpl = emacs
+;;   } do
+;;     Start $emacsimpl
+;;     M-x load-file  po-compat.el RET
+;;     C-x C-f  $pofile RET
+;;     Verify charset marker in status line ('2' = ISO-8859-2, 'u' = UTF-8).
+
 ;;; po-compat.el ends here