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 2ACC9431FD0 for ; Sun, 18 Dec 2011 06:11:48 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.3 X-Spam-Level: X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3] 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 iJui-zJ261zF for ; Sun, 18 Dec 2011 06:11:47 -0800 (PST) Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 2D44B431FB6 for ; Sun, 18 Dec 2011 06:11:47 -0800 (PST) Received: from zancas.localnet (fctnnbsc36w-156034079193.pppoe-dynamic.High-Speed.nb.bellaliant.net [156.34.79.193]) (authenticated bits=0) by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id pBIEBcme022374 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO); Sun, 18 Dec 2011 10:11:39 -0400 Received: from bremner by zancas.localnet with local (Exim 4.77) (envelope-from ) id 1RcHSj-0002Bl-JA; Sun, 18 Dec 2011 10:11:37 -0400 From: David Bremner To: Olivier Berger , notmuch@notmuchmail.org Subject: Re: notmuch-emacs won't display correctly quoted-printable iso-8859-1 mails In-Reply-To: <87sjkjyz5i.fsf@inf-8657.int-evry.fr> References: <20111216160104.24920.82593.reportbug@inf-8657.int-evry.fr> <87sjkjyz5i.fsf@inf-8657.int-evry.fr> User-Agent: Notmuch/0.10.2+103~gd823dc2 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Sun, 18 Dec 2011 10:11:37 -0400 Message-ID: <87liqaas12.fsf@zancas.localnet> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Cc: 652359@bugs.debian.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: Sun, 18 Dec 2011 14:11:48 -0000 --=-=-= On Fri, 16 Dec 2011 17:28:04 +0100, Olivier Berger wrote: > > Here's a copy of a bug report I've just filed in Debian's bugtracker [0]. > > If some of you have an idea of whether there's a fix/workaround ? > Hi Olivier; Can you try the following patch? If you apply it to git, you can use "make debian-snapshot" to build new packages (assuming you have the pre-reqs). Or just patch the notmuch-query.el installed by notmuch-emacs and reload it. The search buffer will still be messed up, but if show is OK, that gives a hint we are on the right track. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=coding-system.patch Content-Description: recognize that notmuch will output utf8, regardless of locale diff --git a/emacs/notmuch-query.el b/emacs/notmuch-query.el index d66baea..7390f82 100644 --- a/emacs/notmuch-query.el +++ b/emacs/notmuch-query.el @@ -38,7 +38,7 @@ is a possibly empty forest of replies. (setq args (append args search-terms)) (with-temp-buffer (progn - (apply 'call-process (append (list notmuch-command nil (list t nil) nil) args)) + (let ((coding-system-for-read 'utf-8)) (apply 'call-process (append (list notmuch-command nil (list t nil) nil) args))) (goto-char (point-min)) (json-read))))) --=-=-=--