aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Love2000-10-06 13:33:37 +0000
committerDave Love2000-10-06 13:33:37 +0000
commiteb806ef3a39673c8f958027254f014c33574c8c8 (patch)
treedb5d140ebd50767e33c29d3533750515d6a272d3
parent058635a937d77d5c67dad178849d54b0c618b308 (diff)
downloademacs-eb806ef3a39673c8f958027254f014c33574c8c8.tar.gz
emacs-eb806ef3a39673c8f958027254f014c33574c8c8.zip
(article-de-quoted-unreadable)
(article-de-base64-unreadable): Fold search case rather than downcasing string. Apply mm-charset-to-coding-system to arg of quoted-printable-decode-region.
-rw-r--r--lisp/gnus/gnus-art.el13
1 files changed, 8 insertions, 5 deletions
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index 4bc1e3fe708..d9a32de5528 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -1529,9 +1529,11 @@ or not."
1529 (unless charset 1529 (unless charset
1530 (setq charset gnus-newsgroup-charset)) 1530 (setq charset gnus-newsgroup-charset))
1531 (when (or force 1531 (when (or force
1532 (and type (string-match "quoted-printable" (downcase type)))) 1532 (and type (let ((case-fold-search t))
1533 (string-match "quoted-printable" type))))
1533 (article-goto-body) 1534 (article-goto-body)
1534 (quoted-printable-decode-region (point) (point-max) charset))))) 1535 (quoted-printable-decode-region
1536 (point) (point-max) (mm-charset-to-coding-system charset))))))
1535 1537
1536(defun article-de-base64-unreadable (&optional force) 1538(defun article-de-base64-unreadable (&optional force)
1537 "Translate a base64 article. 1539 "Translate a base64 article.
@@ -1554,13 +1556,14 @@ If FORCE, decode the article whether it is marked as base64 not."
1554 (unless charset 1556 (unless charset
1555 (setq charset gnus-newsgroup-charset)) 1557 (setq charset gnus-newsgroup-charset))
1556 (when (or force 1558 (when (or force
1557 (and type (string-match "base64" (downcase type)))) 1559 (and type (let ((case-fold-search t))
1560 (string-match "base64" type))))
1558 (article-goto-body) 1561 (article-goto-body)
1559 (save-restriction 1562 (save-restriction
1560 (narrow-to-region (point) (point-max)) 1563 (narrow-to-region (point) (point-max))
1561 (base64-decode-region (point-min) (point-max)) 1564 (base64-decode-region (point-min) (point-max))
1562 (if (mm-coding-system-p charset) 1565 (mm-decode-coding-region
1563 (mm-decode-coding-region (point-min) (point-max) charset))))))) 1566 (point-min) (point-max) (mm-charset-to-coding-system charset)))))))
1564 1567
1565(eval-when-compile 1568(eval-when-compile
1566 (require 'rfc1843)) 1569 (require 'rfc1843))