]> git.eshelyaron.com Git - emacs.git/commit
Treat passed strings as raw-text when percent-escaping in epg
authorRobert Pluim <rpluim@gmail.com>
Mon, 9 Dec 2019 17:41:59 +0000 (18:41 +0100)
committerRobert Pluim <rpluim@gmail.com>
Thu, 12 Dec 2019 07:28:25 +0000 (08:28 +0100)
commitd57bb0c323c326518d9cc974dc794f9e23a51917
tree001f12d08fd4b34dd86cbe812f5427a563fe4564
parent7a498af10a9b19ab3d88663acd4bb5724eeef6c8
Treat passed strings as raw-text when percent-escaping in epg

The strings contained in gpg keys can contain UTF-8 data, but can also
use percent-escapes to encode non-ASCII chars.  When converting those
escapes, use 'raw-text' coding system rather than 'string-to-unibyte',
since the latter signals an error for non-ASCII characters.

* lisp/epg.el (epg--decode-percent-escape): Convert the passed
string to raw-text before treating percent escapes (Bug#38512).
lisp/epg.el