From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/74299 Path: news.gmane.org!not-for-mail From: Sven Joachim Newsgroups: gmane.emacs.gnus.general Subject: Re: Garbled display of UTF-8 encoded mails Date: Wed, 24 Nov 2010 13:54:35 +0100 Message-ID: <87y68iubjo.fsf@turtle.gmx.de> References: <874ob7g5r7.fsf@turtle.gmx.de> <87vd3neord.fsf@turtle.gmx.de> <87aakzvxb4.fsf@turtle.gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1290603363 4967 80.91.229.12 (24 Nov 2010 12:56:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Nov 2010 12:56:03 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M22664@lists.math.uh.edu Wed Nov 24 13:55:58 2010 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.69) (envelope-from ) id 1PLEt8-0003NZ-Nd for ding-account@gmane.org; Wed, 24 Nov 2010 13:55:55 +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 1PLEsS-00008W-Dc; Wed, 24 Nov 2010 06:55:12 -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 1PLEsR-00008O-8F for ding@lists.math.uh.edu; Wed, 24 Nov 2010 06:55:11 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.72) (envelope-from ) id 1PLEsM-0000CG-7F for ding@lists.math.uh.edu; Wed, 24 Nov 2010 06:55:11 -0600 Original-Received: from mailout-de.gmx.net ([213.165.64.22] helo=mail.gmx.net) by quimby.gnus.org with smtp (Exim 3.36 #1 (Debian)) id 1PLEsL-00052e-00 for ; Wed, 24 Nov 2010 13:55:05 +0100 Original-Received: (qmail invoked by alias); 24 Nov 2010 12:54:34 -0000 Original-Received: from p54861F43.dip.t-dialin.net (EHLO turtle.gmx.de) [84.134.31.67] by mail.gmx.net (mp008) with SMTP; 24 Nov 2010 13:54:34 +0100 X-Authenticated: #28250155 X-Provags-ID: V01U2FsdGVkX1+aNmhg8U2agnWesGtrMlE7QBRJQpMZTVLTIYbAzX lpB1C5sUPqAWQt Original-Received: by turtle.gmx.de (Postfix, from userid 1000) id 4548A3F46A; Wed, 24 Nov 2010 13:54:35 +0100 (CET) Mail-Followup-To: ding@gnus.org In-Reply-To: <87aakzvxb4.fsf@turtle.gmx.de> (Sven Joachim's message of "Wed, 24 Nov 2010 11:19:11 +0100") User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2.90 (gnu/linux) X-Y-GMX-Trusted: 0 X-Spam-Score: -1.9 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:74299 Archived-At: On 2010-11-24 11:19 +0100, Sven Joachim wrote: > However, this contains a change in semantics that is not mentioned and > might have been unintended. The old version of mm-enable-multibyte for > Emacs was (set-buffer-multibyte 'to), whereas the new one is > (set-buffer-multibyte t), and this seems to be what causes all my > problems. Reverting the change in master: > > diff --git a/lisp/mm-util.el b/lisp/mm-util.el > index 67b41e0..700c1a6 100644 > --- a/lisp/mm-util.el > +++ b/lisp/mm-util.el > @@ -903,7 +903,7 @@ mail with multiple parts is preferred to sending a Unicode one.") > "Set the multibyte flag of the current buffer. > Only do this if the default value of `enable-multibyte-characters' is > non-nil. This is a no-op in XEmacs." > - (set-buffer-multibyte t))) > + (set-buffer-multibyte 'to))) > > (if (featurep 'xemacs) > (defalias 'mm-disable-multibyte 'ignore) > > solves the issue for me. BTW, I found an old commit which did the same change, but the ChangeLog entry is not especially informative what exactly the problems were: ,---- | $ git show 302ab06a28aec7e405145417bdcbf324246ea192 | commit 302ab06a28aec7e405145417bdcbf324246ea192 | Author: Simon Josefsson | Date: Sun Nov 30 16:59:35 2003 +0000 | | (mm-enable-multibyte): Call set-buffer-multibyte with | 'to argument. Fixes something or other in Emacs 22, and is | backwards compatible. From Kenichi Handa . | | diff --git a/lisp/ChangeLog b/lisp/ChangeLog | index 6e37dbe..8d55cf2 100644 | --- a/lisp/ChangeLog | +++ b/lisp/ChangeLog | @@ -1,5 +1,9 @@ | 2003-11-30 Simon Josefsson | | + * mm-util.el (mm-enable-multibyte): Call set-buffer-multibyte with | + 'to argument. Fixes something or other in Emacs 22, and is | + backwards compatible. From Kenichi Handa . | + | * gnus-agent.el (gnus-agent-expire-unagentized-dirs): Custom fix. | | 2003-11-30 Lars Magne Ingebrigtsen | diff --git a/lisp/mm-util.el b/lisp/mm-util.el | index eef5c04..cbd85b1 100644 | --- a/lisp/mm-util.el | +++ b/lisp/mm-util.el | @@ -413,7 +413,7 @@ used as the line break code type of the coding system." | "Set the multibyte flag of the current buffer. | Only do this if the default value of `enable-multibyte-characters' is | non-nil. This is a no-op in XEmacs." | - (set-buffer-multibyte t)) | + (set-buffer-multibyte 'to)) | (defalias 'mm-enable-multibyte 'ignore)) | | (if mm-emacs-mule | `---- I haven't been able to find a mailinglist thread which describes this in greater detail. Sven