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

David Bremner david at tethera.net
Tue Feb 11 14:02:09 PST 2014


"W. Trevor King" <wking at tremily.us> writes:

>
> If a user has set LANG=C, I expect that's what we should use for
> output (in which case dying with an encoding error is the right thing
> to do).  
>

Perhaps for an interactive tool, intended mainly to be run in a
terminal. But nmbug-status is not such a tool (at least, that was not
why I wrote it). It's run non-interactively in a git hook to generate a
web page.

I'm not sure how important the interactive use case is, but I don't want
to make nmbug-status less robust in order to conform to some abstract
ideal.

One approach would be to enable certain "interactive" features via a
command line argument.

d




More information about the notmuch mailing list