From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.bugs Subject: 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__46410.9058179476$1228051911$gmane$org@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 , 1174@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1228051839 27863 80.91.229.12 (30 Nov 2008 13:30:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 30 Nov 2008 13:30:39 +0000 (UTC) Cc: Simon Josefsson , Clemens Schueller , Frank Schmitt , 1174@emacsbugs.donarmstrong.com, ding@gnus.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 30 14:31:42 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1L6mOi-0000gA-Uc for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Nov 2008 14:31:41 +0100 Original-Received: from localhost ([127.0.0.1]:45157 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6mNY-0001u2-Lo for geb-bug-gnu-emacs@m.gmane.org; Sun, 30 Nov 2008 08:30:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L6mNV-0001st-CQ for bug-gnu-emacs@gnu.org; Sun, 30 Nov 2008 08:30:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L6mNT-0001qL-Ei for bug-gnu-emacs@gnu.org; Sun, 30 Nov 2008 08:30:24 -0500 Original-Received: from [199.232.76.173] (port=33686 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6mNT-0001q6-Au for bug-gnu-emacs@gnu.org; Sun, 30 Nov 2008 08:30:23 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:42831) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L6mNS-0007Bh-QS for bug-gnu-emacs@gnu.org; Sun, 30 Nov 2008 08:30:23 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAUDUC3H022975; Sun, 30 Nov 2008 05:30:12 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mAUDK3S2019979; Sun, 30 Nov 2008 05:20:03 -0800 X-Loop: don@donarmstrong.com Resent-From: Reiner Steib Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 30 Nov 2008 13:20:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1174 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1174-submit@emacsbugs.donarmstrong.com id=B1174.122805073318650 (code B ref 1174); Sun, 30 Nov 2008 13:20:03 +0000 Original-Received: (at 1174) by emacsbugs.donarmstrong.com; 30 Nov 2008 13:12:13 +0000 Original-Received: from mail.uni-ulm.de (mail.uni-ulm.de [134.60.1.11]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mAUDC8ST018644 for <1174@emacsbugs.donarmstrong.com>; Sun, 30 Nov 2008 05:12:10 -0800 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-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 30 Nov 2008 08:30:24 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:22789 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/