(mm-charset-synonym-alist): Add bogus names "UTF8" and "ISO_8859-1".
authorReiner Steib <Reiner.Steib@gmx.de>
Mon, 15 Dec 2008 19:44:47 +0000 (19:44 +0000)
committerReiner Steib <Reiner.Steib@gmx.de>
Mon, 15 Dec 2008 19:44:47 +0000 (19:44 +0000)
lisp/ChangeLog
lisp/mm-util.el

index 0dace7d..d9deb48 100644 (file)
@@ -1,5 +1,8 @@
 2008-12-15  Reiner Steib  <Reiner.Steib@gmx.de>
 
+       * mm-util.el (mm-charset-synonym-alist): Add bogus names "UTF8" and
+       "ISO_8859-1".
+
        * gnus-start.el (gnus-backup-startup-file): Improve doc string.
 
 2008-12-15  Katsumi Yamaoka  <yamaoka@jpl.org>
index e6f0f26..7e9f0ca 100644 (file)
@@ -269,10 +269,18 @@ the alias.  Else windows-NUMBER is used."
     ,@(when (and (not (mm-coding-system-p 'gbk))
                 (mm-coding-system-p 'cp936))
        '((gbk . cp936)))
+    ;; UTF8 is a bogus name for UTF-8
+    ,@(when (and (not (mm-coding-system-p 'utf8))
+                (mm-coding-system-p 'utf-8))
+       '((utf8 . utf-8)))
     ;; ISO8859-1 is a bogus name for ISO-8859-1
     ,@(when (and (not (mm-coding-system-p 'iso8859-1))
                 (mm-coding-system-p 'iso-8859-1))
        '((iso8859-1 . iso-8859-1)))
+    ;; ISO_8859-1 is a bogus name for ISO-8859-1
+    ,@(when (and (not (mm-coding-system-p 'iso_8859-1))
+                (mm-coding-system-p 'iso-8859-1))
+       '((iso_8859-1 . iso-8859-1)))
     )
   "A mapping from unknown or invalid charset names to the real charset names.