Re: Hi all
[notmuch-archives.git] / e9 / bea0e49f7a26c9c2f742a33a84e7e3530c157f
1 Return-Path: <bremner@unb.ca>\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 2ACC9431FD0\r
6         for <notmuch@notmuchmail.org>; Sun, 18 Dec 2011 06:11:48 -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: -2.3\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_MED=-2.3] 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 iJui-zJ261zF for <notmuch@notmuchmail.org>;\r
16         Sun, 18 Dec 2011 06:11:47 -0800 (PST)\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])\r
18         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id 2D44B431FB6\r
21         for <notmuch@notmuchmail.org>; Sun, 18 Dec 2011 06:11:47 -0800 (PST)\r
22 Received: from zancas.localnet\r
23         (fctnnbsc36w-156034079193.pppoe-dynamic.High-Speed.nb.bellaliant.net\r
24         [156.34.79.193]) (authenticated bits=0)\r
25         by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pBIEBcme022374\r
26         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO);\r
27         Sun, 18 Dec 2011 10:11:39 -0400\r
28 Received: from bremner by zancas.localnet with local (Exim 4.77)\r
29         (envelope-from <bremner@unb.ca>)\r
30         id 1RcHSj-0002Bl-JA; Sun, 18 Dec 2011 10:11:37 -0400\r
31 From: David Bremner <david@tethera.net>\r
32 To: Olivier Berger <olivier.berger@it-sudparis.eu>, notmuch@notmuchmail.org\r
33 Subject: Re: notmuch-emacs won't display correctly quoted-printable iso-8859-1\r
34         mails\r
35 In-Reply-To: <87sjkjyz5i.fsf@inf-8657.int-evry.fr>\r
36 References: <20111216160104.24920.82593.reportbug@inf-8657.int-evry.fr>\r
37         <87sjkjyz5i.fsf@inf-8657.int-evry.fr>\r
38 User-Agent: Notmuch/0.10.2+103~gd823dc2 (http://notmuchmail.org) Emacs/23.3.1\r
39         (x86_64-pc-linux-gnu)\r
40 Date: Sun, 18 Dec 2011 10:11:37 -0400\r
41 Message-ID: <87liqaas12.fsf@zancas.localnet>\r
42 MIME-Version: 1.0\r
43 Content-Type: multipart/mixed; boundary="=-=-="\r
44 Cc: 652359@bugs.debian.org\r
45 X-BeenThere: notmuch@notmuchmail.org\r
46 X-Mailman-Version: 2.1.13\r
47 Precedence: list\r
48 List-Id: "Use and development of the notmuch mail system."\r
49         <notmuch.notmuchmail.org>\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
53 List-Post: <mailto:notmuch@notmuchmail.org>\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
56         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
57 X-List-Received-Date: Sun, 18 Dec 2011 14:11:48 -0000\r
58 \r
59 --=-=-=\r
60 \r
61 On Fri, 16 Dec 2011 17:28:04 +0100, Olivier Berger <olivier.berger@it-sudparis.eu> wrote:\r
62 \r
63\r
64 > Here's a copy of a bug report I've just filed in Debian's bugtracker [0].\r
65\r
66 > If some of you have an idea of whether there's a fix/workaround ?\r
67\r
68 \r
69 Hi Olivier;\r
70 \r
71 Can you try the following patch? If you apply it to git, you can use\r
72 "make debian-snapshot" to build new packages (assuming you have the\r
73 pre-reqs).\r
74 \r
75 Or just patch the notmuch-query.el installed by notmuch-emacs and reload\r
76 it.\r
77 \r
78 The search buffer will still be messed up, but if show is OK, that gives\r
79 a hint we are on the right track.\r
80 \r
81 \r
82 --=-=-=\r
83 Content-Type: text/x-diff\r
84 Content-Disposition: inline; filename=coding-system.patch\r
85 Content-Description: recognize that notmuch will output utf8, regardless of\r
86  locale\r
87 \r
88 diff --git a/emacs/notmuch-query.el b/emacs/notmuch-query.el\r
89 index d66baea..7390f82 100644\r
90 --- a/emacs/notmuch-query.el\r
91 +++ b/emacs/notmuch-query.el\r
92 @@ -38,7 +38,7 @@ is a possibly empty forest of replies.\r
93      (setq args (append args search-terms))\r
94      (with-temp-buffer\r
95        (progn\r
96 -       (apply 'call-process (append (list notmuch-command nil (list t nil) nil) args))\r
97 +       (let ((coding-system-for-read 'utf-8)) (apply 'call-process (append (list notmuch-command nil (list t nil) nil) args)))\r
98         (goto-char (point-min))\r
99         (json-read)))))\r
100  \r
101 \r
102 --=-=-=--\r