From: Katsumi Yamaoka <yamaoka@jpl.org>
Subject: mm-with-unibyte-current-buffer is bad for Emacs 23
Date: Tue, 28 Feb 2006 18:48:16 +0900 [thread overview]
Message-ID: <b4mzmkb95lr.fsf@jpl.org> (raw)
Hi,
The macro `mm-with-unibyte-current-buffer' is used here and
there in Gnus. In Emacs 23, I realized there is a possibility
that it breaks non-ASCII text. For instance:
(with-temp-buffer
(set-buffer-multibyte t)
(insert "˵")
(encode-coding-region (point-min) (point-max) 'iso-8859-1)
(mm-with-unibyte-current-buffer (ignore))
(decode-coding-string (buffer-string) 'iso-8859-1))
=> "µ"
It also happens for text other than Latin-1. I haven't
encountered this problem yet actually when using Gnus, though.
Regards,
next reply other threads:[~2006-02-28 9:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-28 9:48 Katsumi Yamaoka [this message]
2006-02-28 13:40 ` Reiner Steib
2006-02-28 23:47 ` Katsumi Yamaoka
2006-03-03 4:29 ` Katsumi Yamaoka
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=b4mzmkb95lr.fsf@jpl.org \
--to=yamaoka@jpl.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).