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 6A420431FBF for ; Tue, 11 Feb 2014 14:02:24 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] 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 evGndpGrejVF for ; Tue, 11 Feb 2014 14:02:18 -0800 (PST) Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 8E56D431FBD for ; Tue, 11 Feb 2014 14:02:18 -0800 (PST) Received: from remotemail by yantan.tethera.net with local (Exim 4.80) (envelope-from ) id 1WDLPC-0005e2-39; Tue, 11 Feb 2014 18:02:14 -0400 Received: (nullmailer pid 31592 invoked by uid 1000); Tue, 11 Feb 2014 22:02:09 -0000 From: David Bremner To: "W. Trevor King" , Tomi Ollila Subject: Re: [PATCH v2 14/20] nmbug-status: Encode output using the user's locale In-Reply-To: <20140211201135.GJ14197@odin.tremily.us> References: <87eh396e6e.fsf@zancas.localnet> <20140211201135.GJ14197@odin.tremily.us> User-Agent: Notmuch/0.17+53~g3e1d7f6 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) Date: Tue, 11 Feb 2014 18:02:09 -0400 Message-ID: <8761ol5mvy.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: text/plain 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, 11 Feb 2014 22:02:24 -0000 "W. Trevor King" 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