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 B3CF4431FD0 for ; Sun, 18 Dec 2011 08:09:14 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] 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 YbxCDyTqfiyh for ; Sun, 18 Dec 2011 08:09:13 -0800 (PST) Received: from mail-gw3.nixu.fi (mail-gw3.nixu.fi [193.209.237.7]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 5F540431FB6 for ; Sun, 18 Dec 2011 08:09:13 -0800 (PST) Received: from pps.filterd (mail-gw3 [127.0.0.1]) by mail-gw3.nixu.fi (8.14.4/8.14.4) with SMTP id pBIG8u1x010923; Sun, 18 Dec 2011 18:08:56 +0200 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31]) by mail-gw3.nixu.fi with ESMTP id 114cs0u6v3-1 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT); Sun, 18 Dec 2011 18:08:56 +0200 Received: from taco2.nixu.fi (taco2.nixu.fi [194.197.118.31]) by taco2.nixu.fi (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id pBIG8tm9001347; Sun, 18 Dec 2011 18:08:56 +0200 From: Tomi Ollila To: Olivier Berger , David Bremner , notmuch@notmuchmail.org Subject: Re: notmuch-emacs won't display correctly quoted-printable iso-8859-1 mails In-Reply-To: <8762heexsp.fsf@inf-8657.int-evry.fr> References: <20111216160104.24920.82593.reportbug@inf-8657.int-evry.fr> <87sjkjyz5i.fsf@inf-8657.int-evry.fr> <87liqaas12.fsf@zancas.localnet> <8762heexsp.fsf@inf-8657.int-evry.fr> User-Agent: Notmuch/0.10.2+93~g631d290 (http://notmuchmail.org) Emacs/23.3.1 (i686-pc-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.5.7110, 1.0.211, 0.0.0000 definitions=2011-12-18_04:2011-12-16, 2011-12-18, 1970-01-01 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=6.0.2-1012030000 definitions=main-1112180152 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 16:09:14 -0000 On Sun, 18 Dec 2011 15:53:26 +0100, Olivier Berger wrote: > On Sun, 18 Dec 2011 10:11:37 -0400, David Bremner wrote: > > 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. > > > > I did that over notmuch-emacs 0.10.2-1 Debian package's version of > notmuch-query.el, but that doesn't seem change anything, unfortunately : > the modeline still is '-1:%*-' for the notmuch-show buffer, after > hitting RET over a message's line in a search result list :-( I tested the same on terminal configured for latin9 and LC_ALL=fi_FI@euro and the change worked for me. The buffer modeline is not supposed to change -- the change makes emacs read incoming data encoded in utf-8 format (notmuch outputs everything in utf-8). Before the change emacs expected (in your case) input data being in latin1 format ("guessed" from your locale), but as input was in utf-8 the conversion to emacs internal format went wrong. When emacs displays something (buffer content, that is) it converts the internal format to the encoding emacs window is using. So, my guess is you did something wrong when trying David's patch and you did not get the change evaluated. This what I did: I opened emacs/notmuch-query.el to another emacs window while notmuch-hello open in another window. Then I added line (coding-system-for-read 'utf-8) in line 35: (let ((args '("show" "--format=json")) (json-object-type 'plist) (json-array-type 'list) (coding-system-for-read 'utf-8) (json-false 'nil)) then moved cursor to the end of line 44 which shows: (json-read))))) (last line of that function) and entered c-x c-e (eval-last-sexp) -- that re-evaluates the function definition. And, as said, after that change my emails render correctly on latin1 -terminal (as opposed those did not render correctly before) > Hope this helps. I hope that I'm right in my guess so we get forward easier... :) > > Best regards, > -- > Olivier BERGER Tomi