summaryrefslogtreecommitdiff
path: root/lisp/gnus/qp.el
diff options
context:
space:
mode:
authorDave Love <fx@gnu.org>2000-10-13 14:08:06 +0000
committerDave Love <fx@gnu.org>2000-10-13 14:08:06 +0000
commitb5287163ec23210badab86a26c1c10a54d9d284e (patch)
tree5b1dc858d250b78e611a9184588e4347707285e9 /lisp/gnus/qp.el
parentcafafe0b815a6d5855c9d7b6376705a61b198021 (diff)
downloademacs-b5287163ec23210badab86a26c1c10a54d9d284e.tar.gz
(quoted-printable-decode-region): Avoid invalid
coding-systems.
Diffstat (limited to 'lisp/gnus/qp.el')
-rw-r--r--lisp/gnus/qp.el10
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/gnus/qp.el b/lisp/gnus/qp.el
index 0992f239a43..f83fb6f3119 100644
--- a/lisp/gnus/qp.el
+++ b/lisp/gnus/qp.el
@@ -37,12 +37,14 @@
If CODING-SYSTEM is non-nil, decode bytes into characters with that
coding-system."
(interactive "r")
+ (unless (mm-coding-system-p coding-system) ; e.g. `ascii' from Gnus
+ (setq coding-system nil))
(save-excursion
(save-restriction
- ;; RFC 2045: An "=" followed by two hexadecimal digits, one or
- ;; both of which are lowercase letters in "abcdef", is formally
- ;; illegal. A robust implementation might choose to recognize
- ;; them as the corresponding uppercase letters.
+ ;; RFC 2045: ``An "=" followed by two hexadecimal digits, one
+ ;; or both of which are lowercase letters in "abcdef", is
+ ;; formally illegal. A robust implementation might choose to
+ ;; recognize them as the corresponding uppercase letters.''
(let ((case-fold-search t))
(narrow-to-region from to)
;; Do this in case we're called from Gnus, say, in a buffer