]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix Gnus inline attachment decoding (bug#35507)
authorBasil L. Contovounesios <contovob@tcd.ie>
Thu, 2 May 2019 21:06:02 +0000 (22:06 +0100)
committerBasil L. Contovounesios <contovob@tcd.ie>
Fri, 3 May 2019 13:52:01 +0000 (14:52 +0100)
Proposed by Andy Moreton <andrewjmoreton@gmail.com>
and Noam Postavsky <npostavs@gmail.com>.
* lisp/gnus/mm-view.el (mm-display-inline-fontify): Always decode
handle text, falling back on 'undecided' coding system.

lisp/gnus/mm-view.el

index 1e1d264b994c5bf61c219cf3282ada2d5843dbaf..849488293a72083fc175645f56d5126d9b80ac8f 100644 (file)
@@ -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