Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 1A20B431FBD for ; Tue, 4 Feb 2014 09:48:34 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.1 X-Spam-Level: X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0R3i1u5xbiYi for ; Tue, 4 Feb 2014 09:48:26 -0800 (PST) Received: from qmta07.westchester.pa.mail.comcast.net (qmta07.westchester.pa.mail.comcast.net [76.96.62.64]) by olra.theworths.org (Postfix) with ESMTP id CDF49431FBC for ; Tue, 4 Feb 2014 09:48:25 -0800 (PST) Received: from omta23.westchester.pa.mail.comcast.net ([76.96.62.74]) by qmta07.westchester.pa.mail.comcast.net with comcast id NHSL1n0021c6gX857HoRzG; Tue, 04 Feb 2014 17:48:25 +0000 Received: from odin.tremily.us ([24.18.63.50]) by omta23.westchester.pa.mail.comcast.net with comcast id NHoQ1n00E152l3L3jHoQVH; Tue, 04 Feb 2014 17:48:25 +0000 Received: by odin.tremily.us (Postfix, from userid 1000) id CC55BFCED15; Tue, 4 Feb 2014 09:48:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin; t=1391536103; bh=TYVOc9xO8QUA4VGt9GbPayyVSp0FeEdeACeNRdr6RIE=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=XC+LJqGpK3NNR7URDCLGZKKq0jaHd0XMToKMGZhr7eqeh8EumFOhgC+6VNp7N7MrU 0c/uIQJaWmP8W6e+8w6JABbYRvZpQYxyONDfCLmmzzMK5l3SErEUAslWf5SA65S4gw pUso7qQd5+ZMfobm5j7UWJATRgVAthUWtSzDr0RI= Date: Tue, 4 Feb 2014 09:48:23 -0800 From: "W. Trevor King" To: Tomi Ollila Subject: Re: [PATCH 00/17] nmbug-status: Python-3-compabitility and general refactoring Message-ID: <20140204174823.GS19935@odin.tremily.us> References: <20140204005331.GQ14197@odin.tremily.us> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="yIMHf/Pa6CzSkARF" Content-Disposition: inline In-Reply-To: OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8; url=http://tremily.us/pubkey.txt User-Agent: Mutt/1.5.22 (2013-10-16) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20121106; t=1391536105; bh=+XPP2AsZLlErS4V4Lo634BHm78rcAMPyl/NgocjHTh4=; h=Received:Received:Received:Date:From:To:Subject:Message-ID: MIME-Version:Content-Type; b=Vxghxv+K96YO2FX1TE3n5V7exNkqOtpBvMZ+PuUL4eBcG5AmZ6fsMc7ztF0pmyoS+ khNAaAto9kYMWnuXvufh0a1eBQW6kY0RMVP9GNXQRdARvka2kEQaG/vlPKvp+0zQZp w5YLEjSTHRw0snORZGftXBTUTusHMg6d7TZMrkpITJILALiAO3MzL2BnY5aPruge9f 16mI7iJva95ZBYAs9xHAOlwgekXIA93zjZAuT+f/KyJEmDlbS8ZD1ssziJ/NfKGqlp L2Rn6bOBbL+aLviLj3hX6XqdAN9qlAZ0njhEGwcbzKX088Evaxis41CLsORIL1sjSd GV7O37McPGX0g== Cc: notmuch@notmuchmail.org X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 04 Feb 2014 17:48:34 -0000 --yIMHf/Pa6CzSkARF Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 =3D self.encode(object, self.errors) > >> UnicodeEncodeError: 'ascii' codec can't encode character u'\u017b' in > >> position 176: ordinal not in range(128) > > =E2=80=A6 >=20 > LANG=3Den_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=3Den_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 --=20 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 --yIMHf/Pa6CzSkARF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQIcBAEBAgAGBQJS8SfmAAoJEKKfehoaNkbtWGIQAIuaNVWPTS7xjroshj3JIh16 JsX4L+hFS4DDOXfzRiWp3o/NW+iRKJ01SkYkyPvhN7ec44ZUsCtHV4y7JnVcX4ws YVHzx5umyvSLFTPvT6+iQf9pGYIbIsW6047/GQ8whWZ2f8ZZitFPYszUWebzmnLf kG+FX9+Mg6HgH8y3wpsirZJ1JtUfT2Cpl6f4gdRlqceW5PpQX4OLbrhNxmBvfXEM UcCTmLS9J6FbeXa8SWGZllzGbE+SCOOR3zX0XOnTTmQVVyfFDhQUe/i3esdz2hiw C5knAjOdtjggoeeOYz/iQbZB7DK5Fj8mfGg3Nz4w7Ozi8bWk9aYQOnNONC8PGKok 7fbRzDuHKnaYKSlEmWVvmrnCHNvQUTJq4HGU0eJxYDDVRFnd+6rtxa/U1e/YhRmM oLeSfGfKamKmOUx+NsY+vbBU2g9E8Ntb16GLSU0uifK70of0/Xlde/CAxIfB2acY gIKO8oUJu7QcL+iBLEc7wL/oeWxC2JEFLU1lEB/XajS9XHSn1W8+AC8Juz5m2tdm +t7NLH+pflECObelsC4Hi0MOHFf/86WdpETdHrHcMWQB/MOM2Egov7ZqUkB2IfcE uRaM3P61PvfuqYNAbIHB+SDHmaRI1Mr646x5GcS+e//0x1P7+WNeowiAp+3yxXeK Et4w/MPDQ3pMMpnXBjzl =VcTx -----END PGP SIGNATURE----- --yIMHf/Pa6CzSkARF--