From: Sven Joachim <svenjoac@gmx.de>
To: ding@gnus.org
Subject: Re: Garbled display of UTF-8 encoded mails
Date: Wed, 24 Nov 2010 11:19:11 +0100 [thread overview]
Message-ID: <87aakzvxb4.fsf@turtle.gmx.de> (raw)
In-Reply-To: <87vd3neord.fsf@turtle.gmx.de> (Sven Joachim's message of "Tue, 23 Nov 2010 22:03:34 +0100")
Seems I found a solution. :-)
On 2010-11-23 22:03 +0100, Sven Joachim wrote:
> I bisected the problem and found out that commit bda3e8962a is the
> culprit:
>
> commit bda3e8962af0aee90144c3ae8c5360aa4c106d94
> Author: Katsumi Yamaoka <yamaoka@jpl.org>
> Date: Fri May 7 06:34:41 2010 +0000
> [...]
> * mm-util.el (mm-enable-multibyte, mm-disable-multibyte): Use (featurep
> 'xemacs) instead of mm-emacs-mule to switch function definitions.
The diff hunk that corresponds to this sentence is the following:
--8<---------------cut here---------------start------------->8---
diff --git a/lisp/mm-util.el b/lisp/mm-util.el
index c1dc4f5..a288b8b 100644
--- a/lisp/mm-util.el
+++ b/lisp/mm-util.el
@@ -908,20 +908,20 @@ mail with multiple parts is preferred to sending a Unicode one.")
(fboundp 'set-buffer-multibyte))
"True in Emacs with Mule.")
- (if mm-emacs-mule
- (defun mm-enable-multibyte ()
- "Set the multibyte flag of the current buffer.
+ (if (featurep 'xemacs)
+ (defalias 'mm-enable-multibyte 'ignore)
+ (defun mm-enable-multibyte ()
+ "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 'to))
- (defalias 'mm-enable-multibyte 'ignore))
+ (set-buffer-multibyte t)))
- (if mm-emacs-mule
- (defun mm-disable-multibyte ()
- "Unset the multibyte flag of in the current buffer.
+ (if (featurep 'xemacs)
+ (defalias 'mm-disable-multibyte 'ignore)
+ (defun mm-disable-multibyte ()
+ "Unset the multibyte flag of in the current buffer.
This is a no-op in XEmacs."
- (set-buffer-multibyte nil))
- (defalias 'mm-disable-multibyte 'ignore)))
+ (set-buffer-multibyte nil))))
(defun mm-preferred-coding-system (charset)
;; A typo in some Emacs versions.
--8<---------------cut here---------------end--------------->8---
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:
--8<---------------cut here---------------start------------->8---
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)
--8<---------------cut here---------------end--------------->8---
solves the issue for me.
Cheers,
Sven
next prev parent reply other threads:[~2010-11-24 10:19 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-23 20:11 Sven Joachim
2010-11-23 21:03 ` Sven Joachim
2010-11-24 4:39 ` Katsumi Yamaoka
2010-11-24 6:27 ` Sven Joachim
2010-11-24 7:03 ` Sven Joachim
2010-11-24 7:15 ` Katsumi Yamaoka
2010-11-24 7:17 ` Sven Joachim
2010-11-24 7:28 ` Katsumi Yamaoka
2010-11-24 7:58 ` Sven Joachim
2010-11-24 10:19 ` Sven Joachim [this message]
2010-11-24 12:54 ` Sven Joachim
2010-11-24 21:07 ` Lars Magne Ingebrigtsen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87aakzvxb4.fsf@turtle.gmx.de \
--to=svenjoac@gmx.de \
--cc=ding@gnus.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).