[gnus git] branch master updated: m0-5-125-g94b354f =1= qp.el (quoted-printable-decode-region): Fix previous change; handle lowercase a..f
Katsumi Yamaoka <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via 94b354fe486e35b2dbff507edb11985a19fc9da0 (commit)
from cc50e3e15d7a8c8fe77ce93c370fb8e6b90e8de5 (commit)
- Log -----------------------------------------------------------------
commit 94b354fe486e35b2dbff507edb11985a19fc9da0
Author: Kenichi Handa <[email protected]>
Date: Thu Sep 6 02:15:04 2012 +0000
qp.el (quoted-printable-decode-region): Fix previous change; handle lowercase a..f
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 32eebba..afd0327 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2012-09-06 Kenichi Handa <[email protected]>
+
+ * qp.el (quoted-printable-decode-region): Fix previous change; handle
+ lowercase a..f.
+
2012-09-05 Magnus Henoch <[email protected]>
* nnmaildir.el (nnmaildir--article-set-flags): Fix compilation error.
diff --git a/lisp/qp.el b/lisp/qp.el
index 8725268..bfa1fe0 100644
--- a/lisp/qp.el
+++ b/lisp/qp.el
@@ -55,8 +55,12 @@ them into characters should be done separately."
;; recognize them as the corresponding uppercase letters.''
(let ((case-fold-search t)
(decode-hex #'(lambda (n1 n2)
- (+ (* (if (<= n1 ?9) (- n1 ?0) (+ (- n1 ?A) 10)) 16)
- (if (<= n2 ?9) (- n2 ?0) (+ (- n2 ?A) 10))))))
+ (+ (* (if (<= n1 ?9) (- n1 ?0)
+ (if (<= n1 ?F) (+ (- n1 ?A) 10)
+ (+ (- n1 ?a) 10))) 16)
+ (if (<= n2 ?9) (- n2 ?0)
+ (if (<= n2 ?F) (+ (- n2 ?A) 10)
+ (+ (- n2 ?a) 10)))))))
(narrow-to-region from to)
;; Do this in case we're called from Gnus, say, in a buffer
;; which already contains non-ASCII characters which would
-----------------------------------------------------------------------
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/qp.el | 8 ++++++--
2 files changed, 11 insertions(+), 2 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