Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: \201's back in 8-bit MIME parts
Date: 19 May 2000 06:36:45 +0200	[thread overview]
Message-ID: <m3wvkr40ma.fsf@quimbies.gnus.org> (raw)

The following new code in mm-decode.el seems to lead to the text being
decoded twice:

	    (if (eq (or (mm-handle-encoding handle)
			(with-current-buffer (mm-handle-buffer handle)
			  (mm-body-7-or-8)))
		    '8bit)
		;; Emacs MULE can not handle some 8bit characters in 
		;; multibyte character!!
		(let ((text (with-current-buffer (mm-handle-buffer handle)
			      (mm-with-unibyte-current-buffer
				(buffer-string)))))
		  (mm-with-unibyte-current-buffer
		    (insert text)))
	      (insert-buffer-substring (mm-handle-buffer handle)))

The `insert' up there into a multibyte buffer actually decodes the
text automatically (in Emacs 20.6, at least), so perhaps, er, some
variable or other should be bound to avoid having that done.

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



             reply	other threads:[~2000-05-19  4:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-05-19  4:36 Lars Magne Ingebrigtsen [this message]
2000-05-19  5:29 ` Shenghuo ZHU

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=m3wvkr40ma.fsf@quimbies.gnus.org \
    --to=larsi@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).