Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / ec / 535d112978e971eaee92d181379cfba6f2c8c5
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 DC815429E32\r
6         for <notmuch@notmuchmail.org>; Mon,  3 Feb 2014 03:03:04 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
9 X-Spam-Flag: NO\r
10 X-Spam-Score: 0\r
11 X-Spam-Level: \r
12 X-Spam-Status: No, score=0 tagged_above=-999 required=5\r
13         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001]\r
14         autolearn=disabled\r
15 Received: from olra.theworths.org ([127.0.0.1])\r
16         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
17         with ESMTP id TyR3dIbCYqve for <notmuch@notmuchmail.org>;\r
18         Mon,  3 Feb 2014 03:02:58 -0800 (PST)\r
19 Received: from qmta12.westchester.pa.mail.comcast.net\r
20         (qmta12.westchester.pa.mail.comcast.net [76.96.59.227])\r
21         by olra.theworths.org (Postfix) with ESMTP id 64646429E48\r
22         for <notmuch@notmuchmail.org>; Mon,  3 Feb 2014 03:02:44 -0800 (PST)\r
23 Received: from omta20.westchester.pa.mail.comcast.net ([76.96.62.71])\r
24         by qmta12.westchester.pa.mail.comcast.net with comcast\r
25         id Mn2k1n0011YDfWL5Cn2kuP; Mon, 03 Feb 2014 11:02:44 +0000\r
26 Received: from odin.tremily.us ([24.18.63.50])\r
27         by omta20.westchester.pa.mail.comcast.net with comcast\r
28         id Mn0j1n00j152l3L3gn0kHT; Mon, 03 Feb 2014 11:00:44 +0000\r
29 Received: from mjolnir.tremily.us (unknown [192.168.0.140])\r
30         by odin.tremily.us (Postfix) with ESMTPS id 974FDFB4D5B;\r
31         Mon,  3 Feb 2014 03:00:43 -0800 (PST)\r
32 Received: (nullmailer pid 708 invoked by uid 1000);\r
33         Mon, 03 Feb 2014 10:59:42 -0000\r
34 From: "W. Trevor King" <wking@tremily.us>\r
35 To: notmuch@notmuchmail.org\r
36 Subject: [PATCH 13/17] nmbug-status: Encode output using the user's locale\r
37 Date: Mon,  3 Feb 2014 02:59:31 -0800\r
38 Message-Id:\r
39  <d4acc1cd540f12eea0a77bb71ffca78cf140b1d5.1391424512.git.wking@tremily.us>\r
40 X-Mailer: git-send-email 1.8.5.2.8.g0f6c0d1\r
41 In-Reply-To: <cover.1391424512.git.wking@tremily.us>\r
42 References: <cover.1391424512.git.wking@tremily.us>\r
43 In-Reply-To: <cover.1391424512.git.wking@tremily.us>\r
44 References: <cover.1391424512.git.wking@tremily.us>\r
45 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net;\r
46         s=q20121106; t=1391425364;\r
47         bh=7eoMlZwcCw4w7we9Iv9sn04rDARubSza7iwz/XbP94Y=;\r
48         h=Received:Received:Received:Received:From:To:Subject:Date:\r
49         Message-Id;\r
50         b=XoC5q0jj/RIXYYqSJuuxT6w5+k3KfeA2Sk0fvd2U3fdtHhLu2zaON9j8mlJV/Jv4l\r
51         GQvIw1kEU/0FmUD4keCQJgmyNBiB9hCCmeuxSodd4AxVa/sOQMp1B9/GCgIeX7gU0+\r
52         e2h7HR3cMnH4QAdyF22SarcnHpP+Fy7me9lpshl6xpMliG8Y+w8NzNbuPd24lsu+/Y\r
53         n91KJtw4DKlLj6bjUa+5/jOoZQdm5Sqsojzq08PieMZwz/1u9UQJHsf53x3ZmnwEdD\r
54         WBXfWKinj1ya0uF53+MBCfp77fx1SicJvcc668YriMfaytwRs/JwhbmoSb0E6KH4HR\r
55         kxFDkodPBYW+g==\r
56 X-BeenThere: notmuch@notmuchmail.org\r
57 X-Mailman-Version: 2.1.13\r
58 Precedence: list\r
59 List-Id: "Use and development of the notmuch mail system."\r
60         <notmuch.notmuchmail.org>\r
61 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
62         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
63 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
64 List-Post: <mailto:notmuch@notmuchmail.org>\r
65 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
66 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
67         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
68 X-List-Received-Date: Mon, 03 Feb 2014 11:03:05 -0000\r
69 \r
70 Instead of always writing UTF-8, allow the user to configure the\r
71 output encoding using their locale.  This is useful for previewing\r
72 output in the terminal, for poor souls that don't use UTF-8 locales\r
73 ;).\r
74 ---\r
75  devel/nmbug/nmbug-status | 7 ++++---\r
76  1 file changed, 4 insertions(+), 3 deletions(-)\r
77 \r
78 diff --git a/devel/nmbug/nmbug-status b/devel/nmbug/nmbug-status\r
79 index b67b86b..e86ea2a 100755\r
80 --- a/devel/nmbug/nmbug-status\r
81 +++ b/devel/nmbug/nmbug-status\r
82 @@ -70,7 +70,7 @@ class Page (object):\r
83                  byte_stream = sys.stdout.buffer\r
84              except AttributeError:  # Python 2\r
85                  byte_stream = sys.stdout\r
86 -            stream = codecs.getwriter(encoding='UTF-8')(stream=byte_stream)\r
87 +            stream = codecs.getwriter(encoding=_ENCODING)(stream=byte_stream)\r
88          self._write_header(views=views, stream=stream)\r
89          for view in views:\r
90              self._write_view(database=database, view=view, stream=stream)\r
91 @@ -212,7 +212,7 @@ _PAGES['html'] = HtmlPage(\r
92      header='''<!DOCTYPE html>\r
93  <html lang="en">\r
94  <head>\r
95 -<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />\r
96 +<meta http-equiv="Content-Type" content="text/html; charset={encoding}" />\r
97  <title>Notmuch Patches</title>\r
98  </head>\r
99  <body>\r
100 @@ -220,7 +220,8 @@ _PAGES['html'] = HtmlPage(\r
101  Generated: {date}<br />\r
102  For more infomation see <a href="http://notmuchmail.org/nmbug">nmbug</a>\r
103  <h3>Views</h3>\r
104 -'''.format(date=datetime.datetime.utcnow().date()),\r
105 +'''.format(date=datetime.datetime.utcnow().date(),\r
106 +           encoding=_ENCODING),\r
107      footer='</body>\n</html>\n',\r
108      )\r
109  \r
110 -- \r
111 1.8.5.2.8.g0f6c0d1\r
112 \r