]> 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>
Fri, 21 Aug 2020 13:36:51 +0000 (15:36 +0200)
* 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 36b67a8fd135e8d0c52ef00a8d0a3158ac8e57cf..8960b3d7aa96f98c23c9505da545e15c58750511 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)