aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2012-11-08 23:49:58 +0000
committerKatsumi Yamaoka2012-11-08 23:49:58 +0000
commitc01f021313dcc50bdf8d4aa28e583214c5bba14c (patch)
tree690aa914b56a87aa9f9d1bdefb0ec70ddce5a68b
parent61ddb1b9e10518fe3e5c66a255119de92b48f2a0 (diff)
downloademacs-c01f021313dcc50bdf8d4aa28e583214c5bba14c.tar.gz
emacs-c01f021313dcc50bdf8d4aa28e583214c5bba14c.zip
gnus-art.el (gnus-article-browse-html-parts): Always replace charset in meta tag with the one the part specifies in its header
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/gnus-art.el10
2 files changed, 9 insertions, 6 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 78204897cf1..5f635e59cdf 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12012-11-08 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * gnus-art.el (gnus-article-browse-html-parts): Always replace charset
4 in meta tag with the one the part specifies in its header.
5
12012-11-02 Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk> 62012-11-02 Stephen Eglen <S.J.Eglen@damtp.cam.ac.uk>
2 7
3 * gnus-dired.el (gnus-dired-attach): Attach to last used message buffer 8 * gnus-dired.el (gnus-dired-attach): Attach to last used message buffer
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 6c827e070cb..edcd7da2ddd 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -2877,7 +2877,7 @@ message header will be added to the bodies of the \"text/html\" parts."
2877 ;; Add a meta html tag to specify charset and a header. 2877 ;; Add a meta html tag to specify charset and a header.
2878 (cond 2878 (cond
2879 (header 2879 (header
2880 (let (title eheader body hcharset coding force-charset) 2880 (let (title eheader body hcharset coding)
2881 (with-temp-buffer 2881 (with-temp-buffer
2882 (mm-enable-multibyte) 2882 (mm-enable-multibyte)
2883 (setq case-fold-search t) 2883 (setq case-fold-search t)
@@ -2900,8 +2900,7 @@ message header will be added to the bodies of the \"text/html\" parts."
2900 charset) 2900 charset)
2901 title (when title 2901 title (when title
2902 (mm-encode-coding-string title charset)) 2902 (mm-encode-coding-string title charset))
2903 body (mm-encode-coding-string content charset) 2903 body (mm-encode-coding-string content charset))
2904 force-charset t)
2905 (setq hcharset (mm-find-mime-charset-region (point-min) 2904 (setq hcharset (mm-find-mime-charset-region (point-min)
2906 (point-max))) 2905 (point-max)))
2907 (cond ((= (length hcharset) 1) 2906 (cond ((= (length hcharset) 1)
@@ -2932,8 +2931,7 @@ message header will be added to the bodies of the \"text/html\" parts."
2932 body (mm-encode-coding-string 2931 body (mm-encode-coding-string
2933 (mm-decode-coding-string 2932 (mm-decode-coding-string
2934 content body) 2933 content body)
2935 charset) 2934 charset))))
2936 force-charset t)))
2937 (setq charset hcharset 2935 (setq charset hcharset
2938 eheader (mm-encode-coding-string 2936 eheader (mm-encode-coding-string
2939 (buffer-string) coding) 2937 (buffer-string) coding)
@@ -2947,7 +2945,7 @@ message header will be added to the bodies of the \"text/html\" parts."
2947 (mm-disable-multibyte) 2945 (mm-disable-multibyte)
2948 (insert body) 2946 (insert body)
2949 (when charset 2947 (when charset
2950 (mm-add-meta-html-tag handle charset force-charset)) 2948 (mm-add-meta-html-tag handle charset t))
2951 (when title 2949 (when title
2952 (goto-char (point-min)) 2950 (goto-char (point-min))
2953 (unless (search-forward "<title>" nil t) 2951 (unless (search-forward "<title>" nil t)