emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r101265: gnus-article-html: Decode co


From: Katsumi Yamaoka
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r101265: gnus-article-html: Decode contents by charset.
Date: Wed, 01 Sep 2010 06:04:49 +0000
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 101265
committer: Katsumi Yamaoka <address@hidden>
branch nick: trunk
timestamp: Wed 2010-09-01 06:04:49 +0000
message:
  gnus-article-html: Decode contents by charset.
modified:
  lisp/gnus/ChangeLog
  lisp/gnus/gnus-html.el
=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog       2010-09-01 04:44:25 +0000
+++ b/lisp/gnus/ChangeLog       2010-09-01 06:04:49 +0000
@@ -1,5 +1,9 @@
 2010-09-01  Katsumi Yamaoka  <address@hidden>
 
+       * gnus-html.el (gnus-article-html): Decode contents by charset.
+
+2010-09-01  Katsumi Yamaoka  <address@hidden>
+
        * gnus-html.el (gnus-html-cache-directory, gnus-html-cache-size)
        (gnus-html-frame-width, gnus-blocked-images)
        * message.el (message-prune-recipient-rules): Add custom version.

=== modified file 'lisp/gnus/gnus-html.el'
--- a/lisp/gnus/gnus-html.el    2010-09-01 04:44:25 +0000
+++ b/lisp/gnus/gnus-html.el    2010-09-01 06:04:49 +0000
@@ -66,7 +66,13 @@
          (let* ((coding-system-for-read 'utf-8)
                 (coding-system-for-write 'utf-8)
                 (default-process-coding-system
-                  (cons coding-system-for-read coding-system-for-write)))
+                  (cons coding-system-for-read coding-system-for-write))
+                (charset (mail-content-type-get (mm-handle-type handle)
+                                                'charset)))
+           (when (and charset
+                      (setq charset (mm-charset-to-coding-system charset))
+                      (not (eq charset 'ascii)))
+             (mm-decode-coding-region (point-min) (point-max) charset))
            (call-process-region (point-min) (point-max)
                                 "w3m" 
                                 nil article-buffer nil


reply via email to

[Prev in Thread] Current Thread [Next in Thread]