summaryrefslogtreecommitdiff
path: root/lisp/gnus/nndoc.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2020-08-21 15:36:45 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2020-08-21 15:36:51 +0200
commit9d0385d7c7adc810dfd06321b783593b7afb3d58 (patch)
tree35f48a98d93834de74ef99194d45d9077133438c /lisp/gnus/nndoc.el
parentd3c73fbfddb40a9d613149cfcdfb66cd162c4f58 (diff)
downloademacs-9d0385d7c7adc810dfd06321b783593b7afb3d58.tar.gz
emacs-9d0385d7c7adc810dfd06321b783593b7afb3d58.tar.bz2
emacs-9d0385d7c7adc810dfd06321b783593b7afb3d58.zip
Fix problem with 8bit content-transfer-encoding in nndoc mbox files
* lisp/gnus/nndoc.el (nndoc-possibly-change-buffer): If we're reading an mbox file, it may contain messages that use content-transfer-encoding 8bit, which means that we have to treat the file as a sequence of byte (bug#42951). This avoids double-decoding -- once by Emacs when inserting the mbox into the buffer, and once by Gnus when displaying the articles.
Diffstat (limited to 'lisp/gnus/nndoc.el')
-rw-r--r--lisp/gnus/nndoc.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/gnus/nndoc.el b/lisp/gnus/nndoc.el
index 36b67a8fd13..8960b3d7aa9 100644
--- a/lisp/gnus/nndoc.el
+++ b/lisp/gnus/nndoc.el
@@ -352,6 +352,7 @@ from the document.")
nndoc-group-alist)
(setq nndoc-dissection-alist nil)
(with-current-buffer nndoc-current-buffer
+ (set-buffer-multibyte nil)
(erase-buffer)
(condition-case error
(if (and (stringp nndoc-address)