From: Basil L. Contovounesios Date: Thu, 2 May 2019 21:06:02 +0000 (+0100) Subject: Fix Gnus inline attachment decoding (bug#35507) X-Git-Tag: emacs-27.0.90~3006 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=24a1d5a0b5c0debd8256d71242bfa6f8448bf5af;p=emacs.git Fix Gnus inline attachment decoding (bug#35507) Proposed by Andy Moreton and Noam Postavsky . * lisp/gnus/mm-view.el (mm-display-inline-fontify): Always decode handle text, falling back on 'undecided' coding system. --- diff --git a/lisp/gnus/mm-view.el b/lisp/gnus/mm-view.el index 1e1d264b994..849488293a7 100644 --- a/lisp/gnus/mm-view.el +++ b/lisp/gnus/mm-view.el @@ -472,10 +472,8 @@ If MODE is not set, try to find mode automatically." (buffer-string))) (coding-system (decode-coding-string text coding-system)) - (charset - (mm-decode-string text charset)) - (t - text))) + (t + (mm-decode-string text (or charset 'undecided))))) (let ((font-lock-verbose nil) ; font-lock is a bit too verbose. (enable-local-variables nil)) ;; We used to set font-lock-mode-hook to nil to avoid enabling