# HG changeset patch # User Dave Love # Date 970839217 0 # Node ID 88dc0e5a0061e71824da8c79ec26927348e1e4a3 # Parent cbbde5b20af54332679a6c483d1e06996cd2c924 (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. diff -r cbbde5b20af5 -r 88dc0e5a0061 lisp/gnus/gnus-art.el --- a/lisp/gnus/gnus-art.el Fri Oct 06 13:31:27 2000 +0000 +++ b/lisp/gnus/gnus-art.el Fri Oct 06 13:33:37 2000 +0000 @@ -1529,9 +1529,11 @@ (unless charset (setq charset gnus-newsgroup-charset)) (when (or force - (and type (string-match "quoted-printable" (downcase type)))) + (and type (let ((case-fold-search t)) + (string-match "quoted-printable" type)))) (article-goto-body) - (quoted-printable-decode-region (point) (point-max) charset))))) + (quoted-printable-decode-region + (point) (point-max) (mm-charset-to-coding-system charset)))))) (defun article-de-base64-unreadable (&optional force) "Translate a base64 article. @@ -1554,13 +1556,14 @@ (unless charset (setq charset gnus-newsgroup-charset)) (when (or force - (and type (string-match "base64" (downcase type)))) + (and type (let ((case-fold-search t)) + (string-match "base64" type)))) (article-goto-body) (save-restriction (narrow-to-region (point) (point-max)) (base64-decode-region (point-min) (point-max)) - (if (mm-coding-system-p charset) - (mm-decode-coding-region (point-min) (point-max) charset))))))) + (mm-decode-coding-region + (point-min) (point-max) (mm-charset-to-coding-system charset))))))) (eval-when-compile (require 'rfc1843))