diff options
| author | Katsumi Yamaoka | 2010-09-01 06:04:49 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-09-01 06:04:49 +0000 |
| commit | da43765da1e8cadedcbb447422ced1840a2ef618 (patch) | |
| tree | a457a7c136699ca882c56ab6690e6bc8e3a98e6c | |
| parent | b89666afd229c09e003c730061ba0317c802c00b (diff) | |
| download | emacs-da43765da1e8cadedcbb447422ced1840a2ef618.tar.gz emacs-da43765da1e8cadedcbb447422ced1840a2ef618.zip | |
gnus-article-html: Decode contents by charset.
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-html.el | 8 |
2 files changed, 11 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index af7fa8460dd..16c90ac61e8 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2010-09-01 Katsumi Yamaoka <yamaoka@jpl.org> | 1 | 2010-09-01 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 2 | ||
| 3 | * gnus-html.el (gnus-article-html): Decode contents by charset. | ||
| 4 | |||
| 5 | 2010-09-01 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 6 | |||
| 3 | * gnus-html.el (gnus-html-cache-directory, gnus-html-cache-size) | 7 | * gnus-html.el (gnus-html-cache-directory, gnus-html-cache-size) |
| 4 | (gnus-html-frame-width, gnus-blocked-images) | 8 | (gnus-html-frame-width, gnus-blocked-images) |
| 5 | * message.el (message-prune-recipient-rules): Add custom version. | 9 | * message.el (message-prune-recipient-rules): Add custom version. |
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el index 0c3ad4b045c..8a7fae1fe9a 100644 --- a/lisp/gnus/gnus-html.el +++ b/lisp/gnus/gnus-html.el | |||
| @@ -66,7 +66,13 @@ | |||
| 66 | (let* ((coding-system-for-read 'utf-8) | 66 | (let* ((coding-system-for-read 'utf-8) |
| 67 | (coding-system-for-write 'utf-8) | 67 | (coding-system-for-write 'utf-8) |
| 68 | (default-process-coding-system | 68 | (default-process-coding-system |
| 69 | (cons coding-system-for-read coding-system-for-write))) | 69 | (cons coding-system-for-read coding-system-for-write)) |
| 70 | (charset (mail-content-type-get (mm-handle-type handle) | ||
| 71 | 'charset))) | ||
| 72 | (when (and charset | ||
| 73 | (setq charset (mm-charset-to-coding-system charset)) | ||
| 74 | (not (eq charset 'ascii))) | ||
| 75 | (mm-decode-coding-region (point-min) (point-max) charset)) | ||
| 70 | (call-process-region (point-min) (point-max) | 76 | (call-process-region (point-min) (point-max) |
| 71 | "w3m" | 77 | "w3m" |
| 72 | nil article-buffer nil | 78 | nil article-buffer nil |