Really fix non-ASCII characters when washing HTML
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 10 Apr 2012 20:58:00 +0000 (22:58 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 10 Apr 2012 20:58:00 +0000 (22:58 +0200)
(article-wash-html): Parse the original article buffer to get the
unencoded data (bug#7410).

lisp/ChangeLog
lisp/gnus-art.el

index 59e3fc4..18fc264 100644 (file)
@@ -2,6 +2,8 @@
 
        * gnus-art.el (article-wash-html): Ensure that we insert the HTML into
        a multibyte buffer (bug#7410).
+       (article-wash-html): Parse the original article buffer to get the
+       unencoded data (bug#7410).
 
        * gnus-start.el (gnus-read-newsrc-el-file): Protect against broken
        .newsrc.el files.
index af872a8..b04615d 100644 (file)
@@ -2754,7 +2754,8 @@ If READ-CHARSET, ask for a coding system."
   (let ((handles nil)
        (buffer-read-only nil))
     (when (gnus-buffer-live-p gnus-original-article-buffer)
-      (setq handles (mm-dissect-buffer t t)))
+      (with-current-buffer gnus-original-article-buffer
+       (setq handles (mm-dissect-buffer t t))))
     (article-goto-body)
     (delete-region (point) (point-max))
     (mm-enable-multibyte)