From 851b38bcdfdb1a503f1434f4459af9d1d325f2d0 Mon Sep 17 00:00:00 2001 From: Katsumi Yamaoka Date: Mon, 20 Feb 2017 06:17:20 +0000 Subject: [PATCH] mm-shr: Ignore coding-system `ascii' * lisp/gnus/mm-decode.el (mm-shr): Ignore coding-system `ascii'. --- lisp/gnus/mm-decode.el | 5 +++-- 1 file 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) -- 2.11.4.GIT