(rfc2047-charset-to-coding-system): Recognize us-ascii as a MIME charset.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 12 Dec 2005 01:54:42 +0000 (01:54 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Mon, 12 Dec 2005 01:54:42 +0000 (01:54 +0000)
lisp/ChangeLog
lisp/rfc2047.el

index 2b01520..a2c024f 100644 (file)
@@ -1,5 +1,8 @@
 2005-12-12  Katsumi Yamaoka  <yamaoka@jpl.org>
 
+       * rfc2047.el (rfc2047-charset-to-coding-system): Recognize
+       us-ascii as a MIME charset.
+
        * mm-bodies.el (mm-decode-content-transfer-encoding): Protect
        against the case where the 2nd arg TYPE is nil.
 
index d9652da..fe0ec46 100644 (file)
@@ -802,11 +802,11 @@ If your Emacs implementation can't decode CHARSET, return nil."
            (memq 'gnus-all mail-parse-ignored-charsets)
            (memq charset mail-parse-ignored-charsets))
     (setq charset mail-parse-charset))
-  (let ((cs (mm-coding-system-p (mm-charset-to-coding-system charset))))
+  (let ((cs (mm-charset-to-coding-system charset)))
     (cond ((eq cs 'ascii)
           (setq cs (or (mm-charset-to-coding-system mail-parse-charset)
                        'raw-text)))
-         (cs)
+         ((mm-coding-system-p cs))
          ((and charset
                (listp mail-parse-ignored-charsets)
                (memq 'gnus-unknown mail-parse-ignored-charsets))