[gnus git] branch no-gnus updated: m0-1-99-g7e70276 =1= Really fix non-ASCII characters when washing HTML

Lars Magne Ingebrigtsen <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  7e70276fec2104ca5a9c635d49fd65818e5e9e79 (commit)
      from  f440c42e7560dd0044172200683f109567296be4 (commit)


- Log -----------------------------------------------------------------
commit 7e70276fec2104ca5a9c635d49fd65818e5e9e79
Author: Lars Magne Ingebrigtsen <[email protected]>
Date:   Tue Apr 10 22:58:00 2012 +0200

    Really fix non-ASCII characters when washing HTML
    
    (article-wash-html): Parse the original article buffer to get the
    unencoded data (bug#7410).

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 59e3fc4..18fc264 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -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.
diff --git a/lisp/gnus-art.el b/lisp/gnus-art.el
index af872a8..b04615d 100644
--- a/lisp/gnus-art.el
+++ b/lisp/gnus-art.el
@@ -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)

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog   |    2 ++
 lisp/gnus-art.el |    3 ++-
 2 files changed, 4 insertions(+), 1 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, no-gnus has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.