Gnus development mailing list
 help / color / mirror / Atom feed
* mm-with-unibyte-current-buffer is bad for Emacs 23
@ 2006-02-28  9:48 Katsumi Yamaoka
  2006-02-28 13:40 ` Reiner Steib
  0 siblings, 1 reply; 4+ messages in thread
From: Katsumi Yamaoka @ 2006-02-28  9:48 UTC (permalink / 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,



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

end of thread, other threads:[~2006-03-03  4:29 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-28  9:48 mm-with-unibyte-current-buffer is bad for Emacs 23 Katsumi Yamaoka
2006-02-28 13:40 ` Reiner Steib
2006-02-28 23:47   ` Katsumi Yamaoka
2006-03-03  4:29     ` Katsumi Yamaoka

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