From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Frank Schmitt Newsgroups: gmane.emacs.bugs Subject: bug#1174: 23.0.60; Some UTF-8 mails displaying wrongly in Emacs 23 Date: Fri, 17 Oct 2008 20:36:58 +0200 Organization: Hamme net, kren mer och nimmi Message-ID: References: <871vyf6q40.fsf@marauder.physik.uni-ulm.de> Reply-To: Frank Schmitt , 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 1224269501 30831 80.91.229.12 (17 Oct 2008 18:51:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2008 18:51:41 +0000 (UTC) Cc: 1174@emacsbugs.donarmstrong.com, ding@gnus.org, Simon Josefsson To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 17 20:52:41 2008 connect(): Connection refused 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 1KquR0-0001wL-3J for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Oct 2008 20:52:26 +0200 Original-Received: from localhost ([127.0.0.1]:39655 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KquPv-0001bL-9h for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Oct 2008 14:51:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KquOs-00019C-7p for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 14:50:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KquOn-000168-AJ for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 14:50:11 -0400 Original-Received: from [199.232.76.173] (port=59345 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KquOm-000163-LF for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 14:50:08 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45071) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KquOm-0008F1-3r for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 14:50:08 -0400 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 m9HIo0YL024796; Fri, 17 Oct 2008 11:50:03 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9HIj6TH023866; Fri, 17 Oct 2008 11:45:06 -0700 X-Loop: don@donarmstrong.com Resent-From: Frank Schmitt Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 17 Oct 2008 18:45:06 +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.122426863822407 (code B ref 1174); Fri, 17 Oct 2008 18:45:06 +0000 Original-Received: (at 1174) by emacsbugs.donarmstrong.com; 17 Oct 2008 18:37:18 +0000 Original-Received: from deliver.uni-koblenz.de (deliver.uni-koblenz.de [141.26.64.15]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9HIbE3W022401 for <1174@emacsbugs.donarmstrong.com>; Fri, 17 Oct 2008 11:37:15 -0700 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 771D678977EE; Fri, 17 Oct 2008 20:37:13 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02147-04; Fri, 17 Oct 2008 20:37:11 +0200 (CEST) X-CHKRCPT: Envelopesender vrfy ich@frank-schmitt.net Original-Received: from glasgow.frank-schmitt.net (p5B24B712.dip0.t-ipconnect.de [91.36.183.18]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by deliver.uni-koblenz.de (Postfix) with ESMTP id 4424A7897423; Fri, 17 Oct 2008 20:37:11 +0200 (CEST) Original-Received: from glasgow.frank-schmitt.net.Frank-Schmitt.net (glasgow.frank-schmitt.net [127.0.0.1]) by glasgow.frank-schmitt.net (Postfix) with ESMTP id 3E00A9707B; Fri, 17 Oct 2008 20:36:58 +0200 (CEST) X-Face: :EL9TzGRN){7|oE2~xQ8Q(VjpjsXgX$~gi&rYD5J5p)$w\Thdl~v:7h`/n)J!8nXT%_+Wj6}@EHM8}QbA(9nX-wrQ:ch1%DauV[?kFasXUcnL#+"K8zOx&$@/M'/}, q-eztaJra1|?C+p$h\2XnK-HB"8_U (Reiner Steib's message of "Fri, 17 Oct 2008 20:19:59 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 17 Oct 2008 14:50:10 -0400 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:21634 Archived-At: Reiner Steib writes: > On Fri, Oct 17 2008, Stefan Monnier wrote: > >>> ;; BEWARE: we used to use string-as-multibyte here which is braindead >>> ;; because it will turn accidental emacs-mule-valid byte sequences >>> ;; into multibyte chars. --Stef >>> ;; Reverted, braindead got 7.5 out of 10 on imdb, so it can't be >>> ;; that bad. --Simon >> >> Who's this Simon who reverted my change without even explaining why? > > The one who's listed as the author of nnimap.el (cc-ed). > >>> which is called at several places. And this breaks it. If I change >>> this function so that string is not changed, my mails are displayed >>> correctly. > > Does it work correctly when using Stefan's version? > ( s/string-as-multibyte/string-to-multibyte/ ...) > > (defun nnimap-demule (string) > ;; BEWARE: we used to use string-as-multibyte here which is braindead > ;; because it will turn accidental emacs-mule-valid byte sequences > ;; into multibyte chars. --Stef > (funcall (if (and (fboundp 'string-to-multibyte) > (subrp (symbol-function 'string-to-multibyte))) > 'string-to-multibyte > 'identity) > (or string ""))) Yes, it does. Frank -- Have you ever considered how much text can fit in eighty columns? Given that a signature typically contains up to four lines of text, this space allows you to attach a tremendous amount of valuable information to your messages. Seize the opportunity and don't waste your signature on bullshit that nobody cares about.