From: Shenghuo ZHU <zsh@cs.rochester.edu>
Subject: Re: \201's back in 8-bit MIME parts
Date: 19 May 2000 01:29:26 -0400 [thread overview]
Message-ID: <2nwvkrxg3t.fsf@tiger.jia.vnet> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "19 May 2000 06:36:45 +0200"
>>>>> "LMI" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
LMI> The following new code in mm-decode.el seems to lead to the text being
LMI> decoded twice:
LMI> (if (eq (or (mm-handle-encoding handle)
LMI> (with-current-buffer (mm-handle-buffer handle)
LMI> (mm-body-7-or-8)))
LMI> '8bit)
LMI> ;; Emacs MULE can not handle some 8bit characters in
LMI> ;; multibyte character!!
LMI> (let ((text (with-current-buffer (mm-handle-buffer handle)
LMI> (mm-with-unibyte-current-buffer
LMI> (buffer-string)))))
LMI> (mm-with-unibyte-current-buffer
LMI> (insert text)))
LMI> (insert-buffer-substring (mm-handle-buffer handle)))
LMI> The `insert' up there into a multibyte buffer actually decodes
LMI> the text automatically (in Emacs 20.6, at least), so perhaps, er,
LMI> some variable or other should be bound to avoid having that done.
The mm-with-unibyte-current-buffer macro temporally disables multibyte
feature of the current buffer, so the `insert' up there actually
inserts the text into a unibyte buffer (without decoding). With this
code, Gnus handles 8-bit UTF-8 part correctly in Emacs 20.6.
Could you send me the message with 8-bit MIME parts?
Shenghuo
prev parent reply other threads:[~2000-05-19 5:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-05-19 4:36 Lars Magne Ingebrigtsen
2000-05-19 5:29 ` Shenghuo ZHU [this message]
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=2nwvkrxg3t.fsf@tiger.jia.vnet \
--to=zsh@cs.rochester.edu \
/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).