From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#1174: 23.0.60; Some UTF-8 mails displaying wrongly in Emacs 23 Date: Sat, 29 Nov 2008 16:30:49 -0500 Message-ID: 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: Stefan Monnier , 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 1227995433 6720 80.91.229.12 (29 Nov 2008 21:50:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2008 21:50:33 +0000 (UTC) Cc: Simon Josefsson , Clemens Schueller , Frank Schmitt , 1174@emacsbugs.donarmstrong.com, ding@gnus.org To: Reiner Steib Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 29 22:51:37 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 1L6Xiy-0003H6-B5 for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Nov 2008 22:51:36 +0100 Original-Received: from localhost ([127.0.0.1]:34923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6Xho-0007Oy-B7 for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Nov 2008 16:50:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L6Xhj-0007O5-CG for bug-gnu-emacs@gnu.org; Sat, 29 Nov 2008 16:50:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L6Xhh-0007No-2a for bug-gnu-emacs@gnu.org; Sat, 29 Nov 2008 16:50:18 -0500 Original-Received: from [199.232.76.173] (port=55889 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6Xhg-0007Ni-Q3 for bug-gnu-emacs@gnu.org; Sat, 29 Nov 2008 16:50:16 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:36249) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L6Xhg-0005hx-CG for bug-gnu-emacs@gnu.org; Sat, 29 Nov 2008 16:50:16 -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 mATLoCGu008627; Sat, 29 Nov 2008 13:50:12 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mATLe4Nj005547; Sat, 29 Nov 2008 13:40:04 -0800 X-Loop: don@donarmstrong.com Resent-From: Stefan Monnier Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 29 Nov 2008 21:40:04 +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.12279942594161 (code B ref 1174); Sat, 29 Nov 2008 21:40:04 +0000 Original-Received: (at 1174) by emacsbugs.donarmstrong.com; 29 Nov 2008 21:30:59 +0000 Original-Received: from ironport2-out.teksavvy.com (ironport2-out.pppoe.ca [206.248.154.182]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mATLUtxq004154 for <1174@emacsbugs.donarmstrong.com>; Sat, 29 Nov 2008 13:30:57 -0800 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApsEAJ5DMUnO+Jkl/2dsb2JhbACBbcwHgn2BJA X-IronPort-AV: E=Sophos;i="4.33,687,1220241600"; d="scan'208";a="30437319" Original-Received: from 206-248-153-37.dsl.teksavvy.com (HELO pastel.home) ([206.248.153.37]) by ironport2-out.teksavvy.com with ESMTP; 29 Nov 2008 16:30:49 -0500 Original-Received: by pastel.home (Postfix, from userid 20848) id BF5A284C0; Sat, 29 Nov 2008 16:30:49 -0500 (EST) In-Reply-To: <87d4geim7p.fsf@marauder.physik.uni-ulm.de> (Reiner Steib's message of "Sat, 29 Nov 2008 16:30:18 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 29 Nov 2008 16:50:18 -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:22772 Archived-At: > I never saw this problem myself. I cannot see any difference with a > few UTF-8 articles (C-T-E: 8bit, [1]), neither with Emacs 22 (with > current Gnus trunk) or Emacs trunk (Gnus 5.13 from there). 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. 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. Stefan