[gnus git] branch master updated: m0-5-157-g7af2968 =1= gnus-art.el (gnus-article-browse-html-parts): Always replace charset in meta tag with the one the part specifies in its header
Katsumi Yamaoka <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via 7af2968c676267d7be60c20d68f719cda6169715 (commit)
from 58f894afa1e24b93368bf087fc27641eb211edb6 (commit)
- Log -----------------------------------------------------------------
commit 7af2968c676267d7be60c20d68f719cda6169715
Author: Katsumi Yamaoka <[email protected]>
Date: Thu Nov 8 23:49:44 2012 +0000
gnus-art.el (gnus-article-browse-html-parts): Always replace charset in meta tag with the one the part specifies in its header
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 0529d15..97d9a68 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2012-11-08 Katsumi Yamaoka <[email protected]>
+
+ * gnus-art.el (gnus-article-browse-html-parts): Always replace charset
+ in meta tag with the one the part specifies in its header.
+
2012-10-25 Stephen Eglen <[email protected]>
* gnus-dired.el (gnus-dired-attach): Attach to last used message buffer
diff --git a/lisp/gnus-art.el b/lisp/gnus-art.el
index fa527b0..6e8bef8 100644
--- a/lisp/gnus-art.el
+++ b/lisp/gnus-art.el
@@ -2878,7 +2878,7 @@ message header will be added to the bodies of the \"text/html\" parts."
;; Add a meta html tag to specify charset and a header.
(cond
(header
- (let (title eheader body hcharset coding force-charset)
+ (let (title eheader body hcharset coding)
(with-temp-buffer
(mm-enable-multibyte)
(setq case-fold-search t)
@@ -2901,8 +2901,7 @@ message header will be added to the bodies of the \"text/html\" parts."
charset)
title (when title
(mm-encode-coding-string title charset))
- body (mm-encode-coding-string content charset)
- force-charset t)
+ body (mm-encode-coding-string content charset))
(setq hcharset (mm-find-mime-charset-region (point-min)
(point-max)))
(cond ((= (length hcharset) 1)
@@ -2933,8 +2932,7 @@ message header will be added to the bodies of the \"text/html\" parts."
body (mm-encode-coding-string
(mm-decode-coding-string
content body)
- charset)
- force-charset t)))
+ charset))))
(setq charset hcharset
eheader (mm-encode-coding-string
(buffer-string) coding)
@@ -2948,7 +2946,7 @@ message header will be added to the bodies of the \"text/html\" parts."
(mm-disable-multibyte)
(insert body)
(when charset
- (mm-add-meta-html-tag handle charset force-charset))
+ (mm-add-meta-html-tag handle charset t))
(when title
(goto-char (point-min))
(unless (search-forward "<title>" nil t)
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 5 +++++
lisp/gnus-art.el | 10 ++++------
2 files changed, 9 insertions(+), 6 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project