]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix problem with 8bit content-transfer-encoding in nndoc mbox files
authorLars Ingebrigtsen <larsi@gnus.org>
Fri, 21 Aug 2020 13:36:45 +0000 (15:36 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 7 Jan 2021 13:34:39 +0000 (14:34 +0100)
* 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.

lisp/gnus/nndoc.el

index 79518bb4f81cdf9569fa67447b4869a97ade2761..9d5e3900e8d83f0eefb3e9a5f29694e2efb1570b 100644 (file)
@@ -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)