From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67617 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: Fri, 17 Oct 2008 20:19:59 +0200 Message-ID: <871vyf6q40.fsf@marauder.physik.uni-ulm.de> References: 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 1224268031 25730 80.91.229.12 (17 Oct 2008 18:27:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2008 18:27:11 +0000 (UTC) Cc: Simon Josefsson , ding@gnus.org, 1174@emacsbugs.donarmstrong.com, Frank Schmitt To: Stefan Monnier Original-X-From: ding-owner+M16068@lists.math.uh.edu Fri Oct 17 20:28:11 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 1Kqu3L-0001So-Fu for ding-account@gmane.org; Fri, 17 Oct 2008 20:27:59 +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 1Kqu1L-00089C-Nn; Fri, 17 Oct 2008 13:25:55 -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 1Kqu1K-000890-Gp for ding@lists.math.uh.edu; Fri, 17 Oct 2008 13:25:54 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1Kqu1E-0006tG-3P for ding@lists.math.uh.edu; Fri, 17 Oct 2008 13:25:54 -0500 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1Kqu1K-00084G-00 for ; Fri, 17 Oct 2008 20:25:54 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.41.37]) by mail.uni-ulm.de (8.14.2/8.14.2) with ESMTP id m9HIPX2c024646; Fri, 17 Oct 2008 20:25:34 +0200 (MEST) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id A4DAC1C7CB; Fri, 17 Oct 2008 20:25:33 +0200 (CEST) X-Face: /U7=m^"/-Dn61mAl{g9e3>\G5Tp,oEX|V)g2I1hBk\ML;)7A?6cmB-y7y?'NA^J<=oz7syB =(McAwIHgLX!.B?R3X}98d@?>CrT094KLWh]WU4gDpnL/")MS(XoQTv`Oq225uL>+;CpPXo$N5e>N> $tPd-gbB^F{gQS#1ase]XO~D4p4M"3+F-7~u]dy3I?Pb8RO*H-EFeWDUf?Rf,d]pv\Jvh2Cht!A=im yKAS2Z%Ao^;}W/qzMvMm Mail-Followup-To: Stefan Monnier , Simon Josefsson , ding@gnus.org, 1174@emacsbugs.donarmstrong.com, Frank Schmitt In-Reply-To: (Stefan Monnier's message of "Fri, 17 Oct 2008 11:39:53 -0400") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) X-DCC-SIHOPE-DCC-3-Metrics: poseidon 1085; Body=5 Fuz1=5 Fuz2=5 X-Virus-Scanned: by amavisd-new X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67617 Archived-At: 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 ""))) Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/