[PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring
W. Trevor King
wking at tremily.us
Tue Feb 4 09:48:23 PST 2014
On Tue, Feb 04, 2014 at 12:30:30PM +0200, Tomi Ollila wrote:
> On Tue, Feb 04 2014, W. Trevor King wrote:
> > On Mon, Feb 03, 2014 at 11:10:23PM +0200, Tomi Ollila wrote:
> >> File "devel/nmbug/nmbug-status", line 197, in _write_threads
> >> ).format(**message_display_data))
> >> File "/usr/lib64/python2.6/codecs.py", line 351, in write
> >> data, consumed = self.encode(object, self.errors)
> >> UnicodeEncodeError: 'ascii' codec can't encode character u'\u017b' in
> >> position 176: ordinal not in range(128)
> > …
>
> LANG=en_US.UTF-8
My current guess is that LANG is set in your terminal, but that you
ran nmbug-status from a cron job where it wasn't set. If that's the
case, try adding:
export LANG=en_US.UTF-8
to your cron job (or replace with whichever encoding you like).
We don't care about the preferred language yet, but we could [1].
There's actually not all that much that needs translating for
nmbug-status.
Cheers,
Trevor
[1]: http://docs.python.org/3/library/gettext.html
--
This email may be signed or encrypted with GnuPG (http://www.gnupg.org).
For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20140204/f17c99ed/attachment.pgp>
More information about the notmuch
mailing list