Re: [PATCH v2 14/20] nmbug-status: Encode output using the user's locale
[notmuch-archives.git] / d6 / 0461fdf15c1ae638202b1cd056ecddef33d9b5
1 Return-Path: <wking@tremily.us>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 152C6431FBD\r
6         for <notmuch@notmuchmail.org>; Wed, 12 Feb 2014 18:35:13 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.1\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.1 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
13         RCVD_IN_DNSWL_NONE=-0.0001] autolearn=disabled\r
14 Received: from olra.theworths.org ([127.0.0.1])\r
15         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
16         with ESMTP id LiNgdIxUorIn for <notmuch@notmuchmail.org>;\r
17         Wed, 12 Feb 2014 18:35:05 -0800 (PST)\r
18 Received: from qmta06.westchester.pa.mail.comcast.net\r
19         (qmta06.westchester.pa.mail.comcast.net [76.96.62.56])\r
20         by olra.theworths.org (Postfix) with ESMTP id 5B178431FAE\r
21         for <notmuch@notmuchmail.org>; Wed, 12 Feb 2014 18:35:05 -0800 (PST)\r
22 Received: from omta22.westchester.pa.mail.comcast.net ([76.96.62.73])\r
23         by qmta06.westchester.pa.mail.comcast.net with comcast\r
24         id ReUA1n00B1ap0As56eb4D9; Thu, 13 Feb 2014 02:35:04 +0000\r
25 Received: from odin.tremily.us ([24.18.63.50])\r
26         by omta22.westchester.pa.mail.comcast.net with comcast\r
27         id Reb21n00l152l3L3ieb3CZ; Thu, 13 Feb 2014 02:35:04 +0000\r
28 Received: by odin.tremily.us (Postfix, from userid 1000)\r
29         id 89EC1102CAD8; Wed, 12 Feb 2014 18:35:01 -0800 (PST)\r
30 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tremily.us; s=odin;\r
31         t=1392258901; bh=O+fMGyvTDahKwmjQt8IC88ItFgXolb77gDenG5WZgP8=;\r
32         h=Date:From:To:Cc:Subject:References:In-Reply-To;\r
33         b=gNPoncWfFIgCBUbiSpGCGv3ECRIoJf45xOZjyGOAvFlasW2mztFFXzUH6KW4bdhyP\r
34         Qrry3q/BH/igyx7jIgAtKL05mBkYcIVRkrj4mgUHlrXUjsFFhvh/nHU9gXODOhsP9w\r
35         c1rwj1dwo99fCIyJu5MXXkpkRySzUJFWias7pe+c=\r
36 Date: Wed, 12 Feb 2014 18:35:01 -0800\r
37 From: "W. Trevor King" <wking@tremily.us>\r
38 To: David Bremner <david@tethera.net>\r
39 Subject: Re: [PATCH v2 14/20] nmbug-status: Encode output using the user's\r
40         locale\r
41 Message-ID: <20140213023501.GH7538@odin.tremily.us>\r
42 References: <cover.1392056624.git.wking@tremily.us>\r
43         <deff072f78f4a7c5b0774e67a8f0517cc704725d.1392056624.git.wking@tremily.us>\r
44         <87eh396e6e.fsf@zancas.localnet>\r
45         <m2sirpu46i.fsf@guru.guru-group.fi>\r
46         <20140211201135.GJ14197@odin.tremily.us>\r
47         <8761ol5mvy.fsf@zancas.localnet>\r
48         <20140211223336.GM14197@odin.tremily.us>\r
49         <877g8z4v4x.fsf@zancas.localnet>\r
50 MIME-Version: 1.0\r
51 Content-Type: multipart/signed; micalg=pgp-sha1;\r
52         protocol="application/pgp-signature"; boundary="3VRmKSg17yJg2MZg"\r
53 Content-Disposition: inline\r
54 In-Reply-To: <877g8z4v4x.fsf@zancas.localnet>\r
55 OpenPGP: id=39A2F3FA2AB17E5D8764F388FC29BDCDF15F5BE8;\r
56         url=http://tremily.us/pubkey.txt\r
57 User-Agent: Mutt/1.5.22 (2013-10-16)\r
58 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;\r
59         s=q20121106; t=1392258904;\r
60         bh=E52wqztPGdPxGow5qtxkaudKjWB+qiBOYQ/G8LKh59I=;\r
61         h=Received:Received:Received:Date:From:To:Subject:Message-ID:\r
62         MIME-Version:Content-Type;\r
63         b=NIRRWEHMveklSDgrLhHUYfJggbditgZ0jGt9Scl/dkIOHLXFjANNThFUWf3NG4toq\r
64         5RhfumCnr5S3WAuiVl92PWE93/P/HsGkAhD8yfYhA3AASMLuP7C7ZYOpkBJzLhvppI\r
65         TJYGX4zJscEauI7HNrJoTgNXjre6I5vEc85A+dUqK0McIrhZ9M8UOPFawTEiWJJVbF\r
66         qtzckPY+7Swu7IobtbKwFdDc2K9un81GoLkXECcZI0IdQp2xo9o065/8GbAQZaW5l3\r
67         a9pfkkPVcNKWpa7pTAGNt5zARyhF14RtMH06zd9xn9BSlb4HCdGdg94XT7hrgNCNz5\r
68         EWPTghyPIlGEg==\r
69 Cc: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org\r
70 X-BeenThere: notmuch@notmuchmail.org\r
71 X-Mailman-Version: 2.1.13\r
72 Precedence: list\r
73 List-Id: "Use and development of the notmuch mail system."\r
74         <notmuch.notmuchmail.org>\r
75 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
76         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
77 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
78 List-Post: <mailto:notmuch@notmuchmail.org>\r
79 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
80 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
81         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
82 X-List-Received-Date: Thu, 13 Feb 2014 02:35:13 -0000\r
83 \r
84 \r
85 --3VRmKSg17yJg2MZg\r
86 Content-Type: text/plain; charset=utf-8\r
87 Content-Disposition: inline\r
88 Content-Transfer-Encoding: quoted-printable\r
89 \r
90 On Wed, Feb 12, 2014 at 10:13:50PM -0400, David Bremner wrote:\r
91 > W. Trevor King writes:\r
92 > > I don't understand why your choice of LANG should depend on the\r
93 > > interactive-ness of an invocation.\r
94 >=20\r
95 > It's not the choice of LANG, but rather the acceptability of\r
96 > crashing with an unhandled exception.\r
97 \r
98 I'd be fine with catching the exception and dying with a more compact\r
99 error message.  The script would still be dying though.\r
100 \r
101 > > The upside of a configurable language is that the user gets output\r
102 > > in their preferred encoding (UTF-8 or not) and=E2=80=94with a bit of\r
103 > > additional gettext work=E2=80=94in their preferred language.  That soun=\r
104 ds\r
105 > > like a fair trade to me.\r
106 >=20\r
107 > The downside is that it introduces another error condition into the\r
108 > script. The data from notmuch is unicode; conversion to most non-utf8\r
109 > locales is lossy and can cause crashes.\r
110 \r
111 Folks on Microsoft OSes might prefer UTF-16 [1], which is a valid\r
112 preference.\r
113 \r
114 > That's why I don't like the idea of enabling it without some\r
115 > explicit option or configuration choice.\r
116 \r
117 I think LANG is an explicit configuration choice ;).  I'm fine punting\r
118 on this though, since UTF-8 works for me.  Should I rebase this to the\r
119 end of the remaining series and resubmit?  Then this patch can cook on\r
120 the list until we find a user that doesn't like UTF-8 ;).\r
121 \r
122 Cheers,\r
123 Trevor\r
124 \r
125 [1]: http://en.wikipedia.org/wiki/Unicode_in_Microsoft_Windows\r
126 \r
127 --=20\r
128 This email may be signed or encrypted with GnuPG (http://www.gnupg.org).\r
129 For more information, see http://en.wikipedia.org/wiki/Pretty_Good_Privacy\r
130 \r
131 --3VRmKSg17yJg2MZg\r
132 Content-Type: application/pgp-signature; name="signature.asc"\r
133 Content-Description: OpenPGP digital signature\r
134 \r
135 -----BEGIN PGP SIGNATURE-----\r
136 Version: GnuPG v2.0.22 (GNU/Linux)\r
137 \r
138 iQIcBAEBAgAGBQJS/C9TAAoJEKKfehoaNkbtjIMQAIj6jRFTTd+cPF94TvpYqheQ\r
139 fVnDzblKg7zDaJ+ZyF8BVJzjh3ryWPqJ1CbWp48AyIB8DFQr9GPltE6bGIJIl54E\r
140 jCyD20WzNO2SYQBZO9hoO5FuSEX99n5a8vP+SjCbgk0kCT+GsBypDNflDLbcdhTq\r
141 uwCslAFcxQBmc2YkH0eIer8gJmny6kWmtLuFlPKuXiiGqGbRJD77fCNXAMh85wKl\r
142 UIbtw+fU0brNIRrnMN7REIL+vJWDAe6if/qyoS1r/Uhotho26a2DElTTCMJuQVEG\r
143 pfjyWvL65/Y5XvOd8mObxjDTq5ijkfHvp2ec3l/91EDO8cU/qRJIf6NDCHdeaufk\r
144 EIRpt6sU9O26g9gjxgJ1qNv4bJJKWTshgndLRyM8/PL7vitDKXluqJN+qWv+RtTU\r
145 /ZSNE0aiqaKnVD10WH29JTFxLghqBvRzetz0ACp5/aY6q3MLX9kVh0k5yCvtPckn\r
146 I2SjcFGq25G7fHtlDkQ0HVHD/WRahaGRkKm2alpSdWzFRaLp4s47j4Mcp2rlzv+x\r
147 8CBlImof+axYPOEHTZ1ilJy/uZEcVOPNzNzojn1lvqh30d6pjUN9V2R65/+KqYFe\r
148 cYyj8P7287WiG1bPusJ4HpXMqymmM4lyZElUJ3TvLS7m0F03obz1f0Uq4h7rWvA7\r
149 jiFmWgmS4pbjg5yvv21U\r
150 =oFX0\r
151 -----END PGP SIGNATURE-----\r
152 \r
153 --3VRmKSg17yJg2MZg--\r