>I don't think that get_charset() can return NULL, because I don't
>think that nl_langinfo() can.  (As an aside, nl_langinfo() can
>return an empty string, but I don't think nl_langinfo(CODESET)
>will, at least in practice.)

I could be persuaded this is true, but the standards are silent on
this issue.

>This thread might help:
>
>http://lists.gnu.org/archive/html/nmh-workers/2006-08/msg00000.html

That seems to date back when we didn't support retrieving the character
set from the locale, and you had to use MM_CHARSET.  Seems like this
problem got solved a while ago.

FWIW, I looked at mutt and it's fallback if the locale is US-ASCII but
the characters are 8bit is to output "unknown-8bit" as the charset.
Seems like a reasonable idea to me.

--Ken

_______________________________________________
Nmh-workers mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/nmh-workers

Reply via email to