mm-util.el (mm-charset-to-coding-system): Recognise all ANSI.x3.4 variations as ASCII...
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Thu, 30 Jun 2011 01:44:14 +0000 (01:44 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 30 Jun 2011 01:44:14 +0000 (01:44 +0000)
lisp/gnus/ChangeLog
lisp/gnus/mm-util.el

index 33fd124..f33f5a3 100644 (file)
@@ -1,3 +1,8 @@
+2011-06-30  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * mm-util.el (mm-charset-to-coding-system): Recognise all ANSI.x3.4
+       variations as ASCII (bug#5458).
+
 2011-06-30  Katsumi Yamaoka  <yamaoka@jpl.org>
 
        * nnmh.el (nnmh-request-list-1): Work on MS Windows.
index 435c3bb..08f23aa 100644 (file)
@@ -550,7 +550,8 @@ is not available."
         (let ((cs (cdr (assq charset mm-charset-override-alist))))
           (and cs (mm-coding-system-p cs) cs))))
    ;; ascii
-   ((eq charset 'us-ascii)
+   ((or (eq charset 'us-ascii)
+       (string-match "ansi.x3.4" (symbol-name charset)))
     'ascii)
    ;; Check to see whether we can handle this charset.  (This depends
    ;; on there being some coding system matching each `mime-charset'