From: Unknown <unknown@unknown.invalid>
To: Robert Pluim <rpluim@gmail.com>
Cc: Lars Ingebrigtsen <larsi@gnus.org>, 38512@debbugs.gnu.org
Subject: bug#38512: 27.0.50; Reading PGP-signed email from people with non-ascii names give error
Date: Mon, 09 Dec 2019 18:08:33 +0100 [thread overview]
Message-ID: <87tv69pgtq.fsf@tullinup.koldfront.dk> (raw)
In-Reply-To: <m2immpfotb.fsf@gmail.com> (Robert Pluim's message of "Mon, 09 Dec 2019 17:26:08 +0100")
Robert writes:
> If I remember correctly what Eli taught me the last time this kind of
> discussion came up, this should fix it:
>
> diff --git a/lisp/epg.el b/lisp/epg.el
> index 090317f422..5466716e34 100644
> --- a/lisp/epg.el
> +++ b/lisp/epg.el
> @@ -2032,7 +2032,7 @@ epg-edit-key
> (epg-reset context)))
>
> (defun epg--decode-percent-escape (string)
> - (setq string (string-to-unibyte string))
> + (setq string (encode-coding-string string 'raw-text))
> (let ((index 0))
> (while (string-match "%\\(\\(%\\)\\|\\([[:xdigit:]][[:xdigit:]]\\)\\)"
> string index)
>
I can confirm that this patch fixes the problem I reported.
Thanks!
Adam
--
"Vegetarian?? Yecchh! I'm not a vegetarian! Adam Sjøgren
I'm a dessertarian." asjo@koldfront.dk
next prev parent reply other threads:[~2019-12-09 17:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-06 20:43 bug#38512: 27.0.50; Reading PGP-signed email from people with non-ascii names give error Unknown
2019-12-09 16:26 ` Robert Pluim
2019-12-09 17:08 ` Unknown [this message]
2019-12-11 12:33 ` Robert Pluim
2019-12-11 16:33 ` Eli Zaretskii
2019-12-12 7:37 ` Robert Pluim
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87tv69pgtq.fsf@tullinup.koldfront.dk \
--to=unknown@unknown.invalid \
--cc=38512@debbugs.gnu.org \
--cc=larsi@gnus.org \
--cc=rpluim@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).