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
Description: PGP signature
