[PATCH v2 14/20] nmbug-status: Encode output using the user's locale

David Bremner david at tethera.net
Wed Feb 12 18:13:50 PST 2014


"W. Trevor King" <wking at tremily.us> writes:
>
> I don't understand why your choice of LANG should depend on the
> interactive-ness of an invocation.

It's not the choice of LANG, but rather the acceptability of crashing
with an unhandled exception.

>  The upside of a configurable language is that the user gets output in
> their preferred encoding (UTF-8 or not) and—with a bit of additional
> gettext work—in their preferred language.  That sounds like a fair
> trade to me.

The downside is that it introduces another error condition into the
script. The data from notmuch is unicode; conversion to most non-utf8
locales is lossy and can cause crashes. That's why I don't like the
idea of enabling it without some explicit option or configuration
choice.

d

P.S. I just saw your other reply, and yeah, a rebased version of the
other 6 patches would be welcome.


More information about the notmuch mailing list