gnus-article-html: Make work buffer multibyte for decoded contents.
authorKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 2 Sep 2010 03:14:02 +0000 (03:14 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Thu, 2 Sep 2010 03:14:02 +0000 (03:14 +0000)
lisp/ChangeLog
lisp/gnus-html.el

index f81fafb..462110d 100644 (file)
@@ -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
index 7e13a0b..80eaae6 100644 (file)
@@ -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