nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug reported regarding Unicode handling in email address


From: Ken Hornstein
Subject: Re: Bug reported regarding Unicode handling in email address
Date: Thu, 10 Jun 2021 06:56:55 -0400

>But my point stands.  nmh should know from the context where the email
>address appears what encoding the bytes use when trying to parse it.
>
>- mail/inbox/42 was written by us; it's our choice.
>- mail/draft is the process's locale.
>- /var/spool/$LOGNAME is in UTF-8.

Right, but ... reality rears it's ugly head.

The address parser is a bunch of layers down.  And it's used for a lot of
things.  For example, stuff from .mh_profile can end up being parsed by
it.  We'd have to change the internal API to indicate where an address is
coming from and I think we'd have to change it almost everywhere.

And then, to get back to my original point ... if we see an 8-bit
character that is not valid in the current character set, what, exactly,
should we do about it?

--Ken



reply via email to

[Prev in Thread] Current Thread [Next in Thread]