Re: [PATCH] Search for keys by uid using utf-8.
"Kevin J. McCarthy" <[email protected]> Thu, 21 May 2026 09:42:11 +0800
| Newsgroups | gmane.mail.mutt.devel |
|---|---|
| Message-ID | <ag5i87v7zvx3zjWc@qinghai> |
On Mon, May 18, 2026 at 06:34:25PM +0800, Kevin J. McCarthy wrote: >GPGME requires the uid to be in utf-8. Gpg (classic-mode) uses the >current locale by default; add --utf8-strings to the command to change >it to also require utf-8. > >Add a one-way transition function from IDN to utf-8: >mutt_addrlist_to_utf8(). Change the crypt_get_keys() function to >invoke that on the generated list of addresses to look up. > >The helper function, intl_to_utf8(), is based off the same template as >intl_to_local() and local_to_intl(). I've kept the code basically the >same, for ease of understanding, even though it may seem a bit >verbose. > >Note that adding a whole new state to the IDNA code would be >significantly more complicated, requiring more state bits, and code to >connect between the three different states. Since there isn't such a >requirement right now, I've kept the change simple and commented that >the function is only meant for a one-way transition from IDN to utf-8. This is pushed up now. -- 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----- iQIzBAEBCgAdFiEEiXWpszqjeRA4XFMIre92hIAxa9oFAmoOYvMACgkQre92hIAx a9p37A//eDgPu+G+VnXhKSlbg5z3Dwvkwp2h5+xU4t/bk3TP2EBNluMjmJHmkX3J JJyok/gU6IsfUhI54kE0mVO7rciNoR7YisNgcB4Wi67/xe1znOiNAYn29Iym+AQU 5kgpYLFGyUL0/Q3yroWgzhruM6b51HgY+owskhB1rPTueUAanyow5a44IgnhgN4X 8+2jPK9h3tkpP91Arhw3RVwKqXyrgk57+kFpUWpyk6+7NQydqsFJowSJYf44Nm2k fwKUvCgQ/mWiDgL+L71HsDOye34bvgkV5EdQ2p68n2V21w8BcSbmkKbYJ1QW73bF zgG8zLc64DgPkgxYPA8QfI7D0gXBSePoBkWed3Z8KPHXC5iv+RKIoR9JQz3cerae nwEBPJcIL0qLCcb3NnizWe7TVYSZltRJvTCptddc7+A5HRYFOyWwCNuWnARPj6Br VkH+qYBT/1AyAnZURXoS5BADnnsx02UbM0YFT7x2nvN7BwQXrQEJKRj+DnMTljpi 2HwyrR6YD3mEogsXFzj72yIUwk4g3IAAytJMaNmm3r/O7v+AyiCvDfurvlJbRZBk VZ4JdUNxgk57N4ekZhoVKDffYyPm2Fq8FKDNAf2tUeTXpU9+wzTm51NL5uMH/Kwi YZrANFka3Ba3hcpA+dLkPAZw6WIpHEOHUPBq0Xx6S3ebQdbgpGE= =yPLd -----END PGP SIGNATURE-----