Re: [PATCH v2] Omit User-Agent: header by default
[notmuch-archives.git] / ab / 8c303525f557f975b1ed9c7fdc53a3b9474b18
1 Return-Path: <tomi.ollila@iki.fi>\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 BDF44431FC0\r
6         for <notmuch@notmuchmail.org>; Tue, 11 Feb 2014 06:14:57 -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\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id e1dJWmdliq9i for <notmuch@notmuchmail.org>;\r
16         Tue, 11 Feb 2014 06:14:51 -0800 (PST)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id A06BC431FBD\r
19         for <notmuch@notmuchmail.org>; Tue, 11 Feb 2014 06:14:51 -0800 (PST)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id 718A21000FA;\r
22         Tue, 11 Feb 2014 16:14:45 +0200 (EET)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: David Bremner <david@tethera.net>, "W. Trevor King" <wking@tremily.us>,\r
25         notmuch@notmuchmail.org\r
26 Subject: Re: [PATCH v2 14/20] nmbug-status: Encode output using the user's\r
27         locale\r
28 In-Reply-To: <87eh396e6e.fsf@zancas.localnet>\r
29 References: <cover.1392056624.git.wking@tremily.us>\r
30         <deff072f78f4a7c5b0774e67a8f0517cc704725d.1392056624.git.wking@tremily.us>\r
31         <87eh396e6e.fsf@zancas.localnet>\r
32 User-Agent: Notmuch/0.17+69~g761b031 (http://notmuchmail.org) Emacs/24.3.1\r
33         (x86_64-unknown-linux-gnu)\r
34 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
35         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
36         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
37 Date: Tue, 11 Feb 2014 16:14:45 +0200\r
38 Message-ID: <m2sirpu46i.fsf@guru.guru-group.fi>\r
39 MIME-Version: 1.0\r
40 Content-Type: text/plain\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\r
44 List-Id: "Use and development of the notmuch mail system."\r
45         <notmuch.notmuchmail.org>\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
49 List-Post: <mailto:notmuch@notmuchmail.org>\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
53 X-List-Received-Date: Tue, 11 Feb 2014 14:14:57 -0000\r
54 \r
55 On Tue, Feb 11 2014, David Bremner <david@tethera.net> wrote:\r
56 \r
57 > "W. Trevor King" <wking@tremily.us> writes:\r
58 >\r
59 >> Instead of always writing UTF-8, allow the user to configure the\r
60 >> output encoding using their locale.  This is useful for previewing\r
61 >> output in the terminal, for poor souls that don't use UTF-8 locales\r
62 >> ;).\r
63 >\r
64 > This (or some other patch in the series) seems to cause some problems on\r
65 > the production instance:\r
66 >\r
67 > remote: Traceback (most recent call last):\r
68 > remote:   File "/home/nmbug/tools/nmbug-status", line 336, in <module>\r
69 > remote:     page.write(database=db, views=config['views'])\r
70 > remote:   File "/home/nmbug/tools/nmbug-status", line 96, in write\r
71 > remote:     self._write_view(database=database, view=view, stream=stream)\r
72 > remote:   File "/home/nmbug/tools/nmbug-status", line 115, in _write_view\r
73 > remote:     self._write_threads(threads=threads, stream=stream)\r
74 > remote:   File "/home/nmbug/tools/nmbug-status", line 219, in _write_threads\r
75 > remote:     ).format(**message_display_data))\r
76 > remote:   File "/usr/lib/python2.6/codecs.py", line 351, in write\r
77 > remote:     data, consumed = self.encode(object, self.errors)\r
78 > remote: UnicodeEncodeError: 'ascii' codec can't encode character u'\u017b' in position 219: ordinal not in range(128)\r
79 >\r
80 > possibly because of\r
81 >\r
82 > LANG=C\r
83 > LANGUAGE=\r
84 > LC_CTYPE="C"\r
85 > LC_NUMERIC="C"\r
86 > LC_TIME="C"\r
87 > LC_COLLATE="C"\r
88 > LC_MONETARY="C"\r
89 > LC_MESSAGES="C"\r
90 > LC_PAPER="C"\r
91 > LC_NAME="C"\r
92 > LC_ADDRESS="C"\r
93 > LC_TELEPHONE="C"\r
94 > LC_MEASUREMENT="C"\r
95 > LC_IDENTIFICATION="C"\r
96 > LC_ALL=C\r
97 >\r
98 > I think it's fine to _allow_ the user to configure the output encoding. I'm\r
99 > less sure about _requiring_ it.\r
100 \r
101 That reminded me that yesterday (after review, of course) I thought that \r
102 we probably want configuration file to be parsed as utf-8 instead of\r
103 any encoding user may have in their system...\r
104 \r
105 > d\r
106 \r
107 Tomi\r