summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKatsumi Yamaoka <yamaoka@jpl.org>2010-09-02 03:47:31 +0000
committerKatsumi Yamaoka <yamaoka@jpl.org>2010-09-02 03:47:31 +0000
commit60893e6f01d36a0e4d3c1c584cbae0d26259373a (patch)
tree68c581be4f319cd53048477fe52a6c417c3fa76e /lisp
parente5500d2a3f635e7c5a157576df6b9d57d02e2809 (diff)
downloademacs-60893e6f01d36a0e4d3c1c584cbae0d26259373a.tar.gz
emacs-60893e6f01d36a0e4d3c1c584cbae0d26259373a.tar.bz2
emacs-60893e6f01d36a0e4d3c1c584cbae0d26259373a.zip
gnus-article-html: Make work buffer multibyte for decoded contents.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/gnus-html.el5
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 68d671d58f7..4acb6a8a621 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-02 Katsumi Yamaoka <yamaoka@jpl.org>
+
+ * gnus-html.el (gnus-article-html): Make work buffer multibyte for
+ decoded contents.
+
2010-09-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
* gnus-group.el (gnus-group-line-format): Remove %O (moderated) from
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el
index 7e13a0bde97..80eaae68052 100644
--- a/lisp/gnus/gnus-html.el
+++ b/lisp/gnus/gnus-html.el
@@ -82,7 +82,10 @@ fit these criteria."
(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