diff options
author | Basil L. Contovounesios <contovob@tcd.ie> | 2019-05-02 22:06:02 +0100 |
---|---|---|
committer | Basil L. Contovounesios <contovob@tcd.ie> | 2019-05-03 14:52:01 +0100 |
commit | 24a1d5a0b5c0debd8256d71242bfa6f8448bf5af (patch) | |
tree | 7086b7707f298285570d32e3177939c02d48d8ae /lisp/gnus | |
parent | b663c8372495eb98eec15fea463635f4a4da2fad (diff) | |
download | emacs-24a1d5a0b5c0debd8256d71242bfa6f8448bf5af.tar.gz |
Fix Gnus inline attachment decoding (bug#35507)
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.
Diffstat (limited to 'lisp/gnus')
-rw-r--r-- | lisp/gnus/mm-view.el | 6 |
1 files changed, 2 insertions, 4 deletions
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 |