Gnus development mailing list
 help / color / mirror / Atom feed
* \201's back in 8-bit MIME parts
@ 2000-05-19  4:36 Lars Magne Ingebrigtsen
  2000-05-19  5:29 ` Shenghuo ZHU
  0 siblings, 1 reply; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2000-05-19  4:36 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2000-05-19  5:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-19  4:36 \201's back in 8-bit MIME parts Lars Magne Ingebrigtsen
2000-05-19  5:29 ` Shenghuo ZHU

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).