From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67833 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general Subject: Re: bug#1174: 23.0.60; Some UTF-8 mails displaying wrongly in Emacs 23 Date: Sun, 30 Nov 2008 14:12:02 +0100 Message-ID: <877i6lfjdp.fsf@marauder.physik.uni-ulm.de> References: <871vyf6q40.fsf@marauder.physik.uni-ulm.de> <87k5ampwej.fsf@marauder.physik.uni-ulm.de> <878wr2ohde.fsf@mocca.josefsson.org> <87d4geim7p.fsf@marauder.physik.uni-ulm.de> Reply-To: Reiner Steib NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228050805 25017 80.91.229.12 (30 Nov 2008 13:13:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Nov 2008 13:13:25 +0000 (UTC) Cc: Simon Josefsson , Frank Schmitt , James Cloos , ding@gnus.org, 1174@emacsbugs.donarmstrong.com, Clemens Schueller To: Stefan Monnier Original-X-From: ding-owner+M16280@lists.math.uh.edu Sun Nov 30 14:14:29 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1L6m83-0004XI-N1 for ding-account@gmane.org; Sun, 30 Nov 2008 14:14:28 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1L6m5z-0002j1-Ep; Sun, 30 Nov 2008 07:12:19 -0600 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1L6m5y-0002im-23 for ding@lists.math.uh.edu; Sun, 30 Nov 2008 07:12:18 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1L6m5u-0002Pd-Nc for ding@lists.math.uh.edu; Sun, 30 Nov 2008 07:12:17 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1L6m65-0003R5-00 for ; Sun, 30 Nov 2008 14:12:25 +0100 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.175]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id mAUDC6Y5026529; Sun, 30 Nov 2008 14:12:06 +0100 (MET) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 3E25B1C865; Sun, 30 Nov 2008 14:12:06 +0100 (CET) X-Face: 1;h7XMU[7l}$T@J.D}5z*w8Tg'}B5ArAWc8>2X~otB;kOjKs8X%|hTC#dG:%Vpx")x7S/`v :VXU#fZW$X$zdhEU.RfVQ@<-m9IuN{Hm"fW{,5]6kR'M*vEs+{5Cj!L(JTRzA$(},?5J=sm;%Od (Stefan Monnier's message of "Sat, 29 Nov 2008 16:30:49 -0500") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) X-DCC-SIHOPE-DCC-3-Metrics: poseidon 1085; Body=7 Fuz1=7 Fuz2=7 X-Virus-Scanned: by amavisd-new X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67833 Archived-At: On Sat, Nov 29 2008, Stefan Monnier wrote: >> Stefan, what are the "accidental emacs-mule-valid byte sequences" >> that trigger this problem? It would be good if someone could send >> me a problematic article. [2] > > In Emacs-22, the problem was more difficult to trigger: you had to > receive an email whose undecoded text contained emacs-mule escape > sequences, which is rather uncommon. With Emacs-23, it's a lot more > common since the internal encoding has changed to a variant of utf-8: > an 8bit body using utf-8 will see its content unwillingly decoded during > nnimap-demule which leads to the bugs we've seen recently. Could you send me an article demonstrating the problem? > I'm pretty sure that string-as-multibyte is wrong here in general. > Maybe the problem is that nnimap-demule is used blindly in different > contexts where some need string-to-multibyte and some need > string-as-multibyte. E.g. maybe Simon's problem was linked to imap > groups with non-ASCII chars in their names, rather than in the > message bodies. I'm not familiar with the IMAP code, but AFAICS, `nnimap-demule' is only used when getting headers or body: | nnimap.el:611: headers (nnimap-demule (defun nnimap-retrieve-headers-progress () "Hook to insert NOV line for current article into `nntp-server-buffer'." | nnimap.el:951: (nnimap-demule (defun nnimap-callback (article gnus-callback buffer) (when (eq article (imap-current-message)) (remove-hook 'imap-fetch-data-hook (nnimap-make-callback article gnus-callback buffer)) (with-current-buffer buffer (insert (with-current-buffer nnimap-server-buffer (nnimap-demule (if (imap-capability 'IMAP4rev1) ;; xxx don't just use car? alist doesn't contain ;; anything else now, but it might... (nth 2 (car (imap-message-get article 'BODYDETAIL))) (imap-message-get article 'RFC822))))) (nnheader-ms-strip-cr) (funcall gnus-callback t)))) | nnimap.el:977: (insert (nnimap-demule (if detail (defun nnimap-request-article-part (article part prop &optional group server to-buffer detail) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/