diff options
author | Katsumi Yamaoka <yamaoka@jpl.org> | 2017-02-20 06:17:20 +0000 |
---|---|---|
committer | Katsumi Yamaoka <yamaoka@jpl.org> | 2017-02-20 06:17:20 +0000 |
commit | 851b38bcdfdb1a503f1434f4459af9d1d325f2d0 (patch) | |
tree | 752c5b1afcb6b8604d7ed5e57995f67b2160bd8d /lisp/gnus/mm-decode.el | |
parent | 0a670690f19bf263dadfe387e5bb22311e3b5231 (diff) | |
download | emacs-851b38bcdfdb1a503f1434f4459af9d1d325f2d0.tar.gz |
mm-shr: Ignore coding-system `ascii'
* lisp/gnus/mm-decode.el (mm-shr): Ignore coding-system `ascii'.
Diffstat (limited to 'lisp/gnus/mm-decode.el')
-rw-r--r-- | lisp/gnus/mm-decode.el | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/gnus/mm-decode.el b/lisp/gnus/mm-decode.el index 6683d68a318..becf6d140b1 100644 --- a/lisp/gnus/mm-decode.el +++ b/lisp/gnus/mm-decode.el @@ -1808,8 +1808,9 @@ text/\\(\\sw+\\)\\(?:;\\s-*charset=\\([^\t\n\r \"'>]+\\)\\)?[^>]*>" nil t) nil t)) (string-match "\\`html\\'" (match-string 1)))) mail-parse-charset)) - (when (or coding - (setq coding (mm-charset-to-coding-system charset nil t))) + (when (and (or coding + (setq coding (mm-charset-to-coding-system charset nil t))) + (not (eq coding 'ascii))) (insert (prog1 (decode-coding-string (buffer-string) coding) (erase-buffer) |