From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.bugs Subject: 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__9739.22404596141$1227962656$gmane$org@marauder.physik.uni-ulm.de> References: <871vyf6q40.fsf@marauder.physik.uni-ulm.de> Reply-To: Reiner Steib , 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 1227962585 17759 80.91.229.12 (29 Nov 2008 12:43:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Nov 2008 12:43:05 +0000 (UTC) Cc: 1174@emacsbugs.donarmstrong.com, Frank Schmitt , ding@gnus.org To: Simon Josefsson Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Nov 29 13:44:06 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 1L6PB8-0005Ln-Fm for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Nov 2008 13:44:06 +0100 Original-Received: from localhost ([127.0.0.1]:35690 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6P9y-0000iU-87 for geb-bug-gnu-emacs@m.gmane.org; Sat, 29 Nov 2008 07:42:54 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L6Oy0-0005AW-2R for bug-gnu-emacs@gnu.org; Sat, 29 Nov 2008 07:30:32 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L6Oxv-00058T-Ok for bug-gnu-emacs@gnu.org; Sat, 29 Nov 2008 07:30:30 -0500 Original-Received: from [199.232.76.173] (port=59600 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L6Oxt-000586-Tp for bug-gnu-emacs@gnu.org; Sat, 29 Nov 2008 07:30:27 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:53298) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L6Oxt-0005dd-Ft for bug-gnu-emacs@gnu.org; Sat, 29 Nov 2008 07:30:25 -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 mATCUBut025492; Sat, 29 Nov 2008 04:30:13 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id mATCF29b021172; Sat, 29 Nov 2008 04:15:02 -0800 X-Loop: don@donarmstrong.com Resent-From: Reiner Steib Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sat, 29 Nov 2008 12:15:02 +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.122796051219867 (code B ref 1174); Sat, 29 Nov 2008 12:15:02 +0000 Original-Received: (at 1174) by emacsbugs.donarmstrong.com; 29 Nov 2008 12:08:32 +0000 Original-Received: from mail.uni-ulm.de (mail.uni-ulm.de [134.60.1.11]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id mATC8S4K019861 for <1174@emacsbugs.donarmstrong.com>; Sat, 29 Nov 2008 04:08:29 -0800 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-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sat, 29 Nov 2008 07:30:30 -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:22760 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/