Re: [PATCH 2/2] Convert pgp key lookups to use local mode addresses.
"Kevin J. McCarthy" <[email protected]> Sun, 17 May 2026 11:08:17 +0800
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <agkxIWM3oB9wC-T4@qinghai> |
On Sun, May 17, 2026 at 06:32:29AM +0800, Kevin J. McCarthy wrote: >On Sat, May 16, 2026 at 02:57:13PM +0200, Werner Koch wrote: >>On Fri, 15 May 2026 20:28, Kevin J. McCarthy said: >> >>>diff --git a/crypt.c b/crypt.c >> >>> rfc822_append(last ? &last : &adrlist, msg->env->bcc, 0); >>>+ mutt_addrlist_to_local(adrlist); >> >>If the address is directly passed to gpgme "local" should be utf8 as >>this is how gpgme or OpenPGP define user ids and thus mail addresses. > >Thank you, Werner. What about when invoking gpg directly (i.e., mutt >in classic mode)? Does the command line gpg translate user ids from >the system locale to utf8 for international domains? Replying to myself, after RTFM :-). There is an option --utf8-strings, default off, that controls whether command line arguments are interpreted as utf-8 or in the native locale (or, as specified by --display-charset). Also, --with-colons output is always in utf-8. I'll have to look through the classic mode code to see whether it's dealing with this properly. But I don't recall any iconv code in there, so looks like more work to be done. -- Kevin J. McCarthy GPG Fingerprint: 8975 A9B3 3AA3 7910 385C 5308 ADEF 7684 8031 6BDA
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmoJMSEACgkQre92hIAx a9oi2xAAuOWsTwwAQqcS8b30iPiBVBFCWmjBO0xobP0D1N/t9Ib2R2SN2Q2isKtV L63kiziAJjg2XeZbNPpzvpLfeaHEnRTYnxXA+1ZJpA1BiOxtVX7Ugtr+TZiecBzJ VuZuGAPffyBhuXyLDtiq9bAY2ubkA0PoQqas7oA9VuDJ7poT2UbJmcyXkV9h8v3d fET5xJBV7pTF+pRTYqQ3JqRRjJ89kC4XD2aJGNB8hRYYqqBOrzLnU7jVxdbWctR+ PuWgxcyF1T+QyCi8p+2G0MY2xjz175ZP9RY+TZ2MkM/r/NZx1rQq/qHebPLOMCxr gsNtO6AZs0TmD8ixoVGb7Ad5gw8cTXg0Hm202FSiAsewa8d53hRAYWI1oAMZrPhG SGLTxqMQP+1beePKzyRDgXSiL0N06+PLIxpF2svCBZ8PbEF+1EQmXRS7nUH9pmOB JmPJyAIMcFJRzWqjXeOzRyIuczTW7AhZBB6EDQ1jl+8GcenKeOFR0P4acCSuE+/g wnqHhqHWGxem2qcmME4qS/sf2F7+U3+j9yC+qfhNj78qrzX+6tmr8bDWhus3JJjZ cpItv3BoI3h46VCDI4C7Fb5RBAwLEiivXwvazo0a8ev3nJdFfs1dYMz+RVz2T2C/ 55TWv2NfSGnbr2IfvQlLGWhm632fK2QL/tcZBjXY8nZ2pwKKav4= =skuU -----END PGP SIGNATURE-----