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: Fri, 17 Oct 2008 20:19:59 +0200 Message-ID: <871vyf6q40.fsf__16455.58412788$1224269566$gmane$org@marauder.physik.uni-ulm.de> References: 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 1224269500 30821 80.91.229.12 (17 Oct 2008 18:51:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Oct 2008 18:51:40 +0000 (UTC) Cc: 1174@emacsbugs.donarmstrong.com, Frank Schmitt , 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:38 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 1KquQr-0001tJ-69 for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Oct 2008 20:52:17 +0200 Original-Received: from localhost ([127.0.0.1]:60091 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KquPm-0001Xm-BA for geb-bug-gnu-emacs@m.gmane.org; Fri, 17 Oct 2008 14:51:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KquOr-00018o-JH for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 14:50:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KquOm-00015k-Vv for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 14:50:09 -0400 Original-Received: from [199.232.76.173] (port=59341 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KquOm-00015a-4h for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 14:50:08 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:45066) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KquOl-0008Ek-Ea for bug-gnu-emacs@gnu.org; Fri, 17 Oct 2008 14:50:07 -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 m9HIo0YH024796; Fri, 17 Oct 2008 11:50:02 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9HIZ4lJ021370; Fri, 17 Oct 2008 11:35:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Reiner Steib Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 17 Oct 2008 18:35:04 +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.122426794119988 (code B ref 1174); Fri, 17 Oct 2008 18:35:04 +0000 Original-Received: (at 1174) by emacsbugs.donarmstrong.com; 17 Oct 2008 18:25:41 +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 m9HIPaSa019981 for <1174@emacsbugs.donarmstrong.com>; Fri, 17 Oct 2008 11:25:38 -0700 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-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 17 Oct 2008 14:50:09 -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:21633 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/