locales and notmuch
david at tethera.net
Thu Feb 21 11:57:36 PST 2019
David Bremner <david at tethera.net> writes:
> Otherwise we could insist they are UTF-8, ignoring the locale. The
> fullest generality (I think) is to first convert from the users locale
> to utf8, as in the attached sample program. The gotcha is that the call
> to setlocale is necessary, and can't really be local to string utility
> function. So we'd have to add that to notmuch startup. We mostly ignore
> locales, so I guess there shouldn't be too much side effects; otoh I
> don't have much experience with locales.
1) It might be possible to save and restore the locale, although that
sounds a bit heavy weight for lowercasing a string.
2) We'd need a UTF-8 locale to test in. I guess C.UTF-8 is not yet
More information about the notmuch