From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67825 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: Sat, 29 Nov 2008 13:08:20 +0100 Message-ID: <87k5ampwej.fsf@marauder.physik.uni-ulm.de> References: <871vyf6q40.fsf@marauder.physik.uni-ulm.de> 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 1227960576 12800 80.91.229.12 (29 Nov 2008 12:09:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2008 12:09:36 +0000 (UTC) Cc: Frank Schmitt , Stefan Monnier , ding@gnus.org, 1174@emacsbugs.donarmstrong.com To: Simon Josefsson Original-X-From: ding-owner+M16272@lists.math.uh.edu Sat Nov 29 13:10:39 2008 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 1L6Oej-0004Tc-O4 for ding-account@gmane.org; Sat, 29 Nov 2008 13:10:38 +0100 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 1L6Ocv-000614-3Y; Sat, 29 Nov 2008 06:08:45 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1L6Oct-00060q-DV for ding@lists.math.uh.edu; Sat, 29 Nov 2008 06:08:43 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1L6Ocq-0000fc-7f for ding@lists.math.uh.edu; Sat, 29 Nov 2008 06:08:43 -0600 Original-Received: from mail.uni-ulm.de ([134.60.1.11]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1L6Od1-0007Hu-00 for ; Sat, 29 Nov 2008 13:08:51 +0100 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 mATC8PhO024406; Sat, 29 Nov 2008 13:08:25 +0100 (MET) Original-Received: from localhost (localhost [127.0.0.1]) by bridgekeeper.physik.uni-ulm.de (Postfix) with ESMTP id 0651C13404; Sat, 29 Nov 2008 13:08:24 +0100 (CET) X-Face: .*T0'iU(sujq_j9\J>-d4fg;N/1++U#U$_5ii6k.=|"-n'?5O:Hyz&wi'-!I~,}7~GgT=0S /&-R5sbkNy5+Xo1y{Tw2KKxi@Xh"g@]Qc|.U<*]WDd)qvGowFDvfU1F]{EDho:7P0@|oOD=Bc{K4?> WP68K[Mx:}=`ZT'6g4'f+g?;`vri2!)xGy}3:=l'(/Cea0l4lo^H5#@/Z3ev Mail-Followup-To: Simon Josefsson , Frank Schmitt , Stefan Monnier , ding@gnus.org, 1174@emacsbugs.donarmstrong.com In-Reply-To: (Frank Schmitt's message of "Fri, 17 Oct 2008 20:36:58 +0200") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.1 (gnu/linux) X-DCC-Misty-Metrics: poseidon 1170; 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:67825 Archived-At: On Fri, Oct 17 2008, Frank Schmitt wrote: > 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 Simon, could you please clarify why you reverted Stefan's change in `nnimap-demule'? It breaks reading UTF-8 articles via nnimap.el in Emacs 23. >>> 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. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/