diff lisp/gnus/gnus-html.el @ 110143:19ce95f8bbbb

gnus-article-html: Make work buffer multibyte for decoded contents.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Thu, 02 Sep 2010 03:47:31 +0000
parents 8eb5f382b2e6
children 6b5dc2e2565e
line wrap: on
line diff
--- a/lisp/gnus/gnus-html.el	Thu Sep 02 03:43:31 2010 +0000
+++ b/lisp/gnus/gnus-html.el	Thu Sep 02 03:47:31 2010 +0000
@@ -82,7 +82,10 @@
 	    (when (and charset
 		       (setq charset (mm-charset-to-coding-system charset))
 		       (not (eq charset 'ascii)))
-	      (mm-decode-coding-region (point-min) (point-max) charset))
+	      (insert (prog1
+			  (mm-decode-coding-string (buffer-string) charset)
+			(erase-buffer)
+			(mm-enable-multibyte))))
 	    (call-process-region (point-min) (point-max)
 				 "w3m"
 				 nil article-buffer nil