2000-10-20 19:55:59 ShengHuo ZHU <zsh@cs.rochester.edu>
authorShengHuo ZHU <zsh@cs.rochester.edu>
Fri, 20 Oct 2000 22:58:56 +0000 (22:58 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Fri, 20 Oct 2000 22:58:56 +0000 (22:58 +0000)
* gnus-art.el (gnus-mime-inline-part): Check validity of charset.

lisp/ChangeLog
lisp/gnus-art.el

index 435e617..36795d0 100644 (file)
@@ -1,3 +1,7 @@
+2000-10-20 19:55:59  ShengHuo ZHU  <zsh@cs.rochester.edu>
+
+       * gnus-art.el (gnus-mime-inline-part): Check validity of charset.
+
 2000-10-18  Dave Love  <fx@gnu.org>
 
        * mail-source.el (mm-util): Require.
 2000-10-18  Dave Love  <fx@gnu.org>
 
        * mail-source.el (mm-util): Require.
index 8e35782..f7f7d39 100644 (file)
@@ -3061,9 +3061,11 @@ If ALL-HEADERS is non-nil, no headers are hidden."
                  (read-coding-system "Charset: ")))))
       (forward-line 2)
       (mm-insert-inline handle
                  (read-coding-system "Charset: ")))))
       (forward-line 2)
       (mm-insert-inline handle
-                       (if charset 
-                           (mm-decode-coding-string
-                            contents (mm-charset-to-coding-system charset))
+                       (if (and charset 
+                                (setq charset (mm-charset-to-coding-system 
+                                               charset))
+                                (not (eq charset 'ascii)))
+                           (mm-decode-coding-string contents charset)
                          contents))
       (goto-char b))))
 
                          contents))
       (goto-char b))))