aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2012-09-06 10:45:33 +0900
committerKenichi Handa2012-09-06 10:45:33 +0900
commitf41d6f9db69ce77fe9b3a637de407e8b589e0dc4 (patch)
tree4adca669b99395eebd3ce69ae16a21888d60985b
parent776f29e171a93dac78b15397393bf40d8fcfd584 (diff)
downloademacs-f41d6f9db69ce77fe9b3a637de407e8b589e0dc4.tar.gz
emacs-f41d6f9db69ce77fe9b3a637de407e8b589e0dc4.zip
qp.el (quoted-printable-decode-region): Fix previous change; handle lowercase a..f.
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/qp.el8
2 files changed, 11 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 37d89ba8cad..fe025210c2a 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12012-09-06 Kenichi Handa <handa@gnu.org>
2
3 * qp.el (quoted-printable-decode-region): Fix previous change; handle
4 lowercase a..f.
5
12012-09-03 Lars Ingebrigtsen <larsi@gnus.org> 62012-09-03 Lars Ingebrigtsen <larsi@gnus.org>
2 7
3 * dgnushack.el: XEmacs 21.5 compilation fix. 8 * dgnushack.el: XEmacs 21.5 compilation fix.
diff --git a/lisp/gnus/qp.el b/lisp/gnus/qp.el
index 87252684a48..bfa1fe0a6d4 100644
--- a/lisp/gnus/qp.el
+++ b/lisp/gnus/qp.el
@@ -55,8 +55,12 @@ them into characters should be done separately."
55 ;; recognize them as the corresponding uppercase letters.'' 55 ;; recognize them as the corresponding uppercase letters.''
56 (let ((case-fold-search t) 56 (let ((case-fold-search t)
57 (decode-hex #'(lambda (n1 n2) 57 (decode-hex #'(lambda (n1 n2)
58 (+ (* (if (<= n1 ?9) (- n1 ?0) (+ (- n1 ?A) 10)) 16) 58 (+ (* (if (<= n1 ?9) (- n1 ?0)
59 (if (<= n2 ?9) (- n2 ?0) (+ (- n2 ?A) 10)))))) 59 (if (<= n1 ?F) (+ (- n1 ?A) 10)
60 (+ (- n1 ?a) 10))) 16)
61 (if (<= n2 ?9) (- n2 ?0)
62 (if (<= n2 ?F) (+ (- n2 ?A) 10)
63 (+ (- n2 ?a) 10)))))))
60 (narrow-to-region from to) 64 (narrow-to-region from to)
61 ;; Do this in case we're called from Gnus, say, in a buffer 65 ;; Do this in case we're called from Gnus, say, in a buffer
62 ;; which already contains non-ASCII characters which would 66 ;; which already contains non-ASCII characters which would