--- /dev/null
+Return-Path: <david@tethera.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 6A420431FBF\r
+ for <notmuch@notmuchmail.org>; Tue, 11 Feb 2014 14:02:24 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id evGndpGrejVF for <notmuch@notmuchmail.org>;\r
+ Tue, 11 Feb 2014 14:02:18 -0800 (PST)\r
+Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
+ (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 8E56D431FBD\r
+ for <notmuch@notmuchmail.org>; Tue, 11 Feb 2014 14:02:18 -0800 (PST)\r
+Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
+ (envelope-from <david@tethera.net>)\r
+ id 1WDLPC-0005e2-39; Tue, 11 Feb 2014 18:02:14 -0400\r
+Received: (nullmailer pid 31592 invoked by uid 1000); Tue, 11 Feb 2014\r
+ 22:02:09 -0000\r
+From: David Bremner <david@tethera.net>\r
+To: "W. Trevor King" <wking@tremily.us>, Tomi Ollila <tomi.ollila@iki.fi>\r
+Subject: Re: [PATCH v2 14/20] nmbug-status: Encode output using the user's\r
+ locale\r
+In-Reply-To: <20140211201135.GJ14197@odin.tremily.us>\r
+References: <cover.1392056624.git.wking@tremily.us>\r
+ <deff072f78f4a7c5b0774e67a8f0517cc704725d.1392056624.git.wking@tremily.us>\r
+ <87eh396e6e.fsf@zancas.localnet> <m2sirpu46i.fsf@guru.guru-group.fi>\r
+ <20140211201135.GJ14197@odin.tremily.us>\r
+User-Agent: Notmuch/0.17+53~g3e1d7f6 (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Tue, 11 Feb 2014 18:02:09 -0400\r
+Message-ID: <8761ol5mvy.fsf@zancas.localnet>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 11 Feb 2014 22:02:24 -0000\r
+\r
+"W. Trevor King" <wking@tremily.us> writes:\r
+\r
+>\r
+> If a user has set LANG=C, I expect that's what we should use for\r
+> output (in which case dying with an encoding error is the right thing\r
+> to do). \r
+>\r
+\r
+Perhaps for an interactive tool, intended mainly to be run in a\r
+terminal. But nmbug-status is not such a tool (at least, that was not\r
+why I wrote it). It's run non-interactively in a git hook to generate a\r
+web page.\r
+\r
+I'm not sure how important the interactive use case is, but I don't want\r
+to make nmbug-status less robust in order to conform to some abstract\r
+ideal.\r
+\r
+One approach would be to enable certain "interactive" features via a\r
+command line argument.\r
+\r
+d\r
+\r
+\r