From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67618 Path: news.gmane.org!not-for-mail From: Frank Schmitt Newsgroups: gmane.emacs.gnus.general Subject: Re: 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1224268668 27879 80.91.229.12 (17 Oct 2008 18:37:48 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2008 18:37:48 +0000 (UTC) Cc: Simon Josefsson , ding@gnus.org, 1174@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: ding-owner+M16069@lists.math.uh.edu Fri Oct 17 20:38:48 2008 connect(): Connection refused 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 1KquDg-0005Fb-Tt for ding-account@gmane.org; Fri, 17 Oct 2008 20:38:41 +0200 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 1KquCP-0008Hi-9E; Fri, 17 Oct 2008 13:37:21 -0500 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 1KquCN-0008HN-Nt for ding@lists.math.uh.edu; Fri, 17 Oct 2008 13:37:19 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1KquCJ-0006vh-RU for ding@lists.math.uh.edu; Fri, 17 Oct 2008 13:37:19 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1KquCQ-0008Dd-00 for ; Fri, 17 Oct 2008 20:37:22 +0200 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-Spam-Score: -5.1 (-----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67618 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.