David Bremner <david@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 universally available. d _______________________________________________ notmuch mailing list notmuch@notmuchmail.org https://notmuchmail.org/mailman/listinfo/notmuch