diff options
| author | Basil L. Contovounesios | 2019-05-02 22:06:02 +0100 |
|---|---|---|
| committer | Basil L. Contovounesios | 2019-05-03 14:52:01 +0100 |
| commit | 24a1d5a0b5c0debd8256d71242bfa6f8448bf5af (patch) | |
| tree | 7086b7707f298285570d32e3177939c02d48d8ae | |
| parent | b663c8372495eb98eec15fea463635f4a4da2fad (diff) | |
| download | emacs-24a1d5a0b5c0debd8256d71242bfa6f8448bf5af.tar.gz emacs-24a1d5a0b5c0debd8256d71242bfa6f8448bf5af.zip | |
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.
| -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." | |||
| 472 | (buffer-string))) | 472 | (buffer-string))) |
| 473 | (coding-system | 473 | (coding-system |
| 474 | (decode-coding-string text coding-system)) | 474 | (decode-coding-string text coding-system)) |
| 475 | (charset | 475 | (t |
| 476 | (mm-decode-string text charset)) | 476 | (mm-decode-string text (or charset 'undecided))))) |
| 477 | (t | ||
| 478 | text))) | ||
| 479 | (let ((font-lock-verbose nil) ; font-lock is a bit too verbose. | 477 | (let ((font-lock-verbose nil) ; font-lock is a bit too verbose. |
| 480 | (enable-local-variables nil)) | 478 | (enable-local-variables nil)) |
| 481 | ;; We used to set font-lock-mode-hook to nil to avoid enabling | 479 | ;; We used to set font-lock-mode-hook to nil to avoid enabling |