emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need some help with Rmail/mbox


From: Eli Zaretskii
Subject: Re: Need some help with Rmail/mbox
Date: Sat, 20 Sep 2008 13:19:11 +0300

> From: Daiki Ueno <address@hidden>
> Date: Sat, 20 Sep 2008 19:04:33 +0900
> Cc: Paul Michael Reilly <address@hidden>, address@hidden
> 
> > In XEmacs, string decoding is implemented by copying to a temporary
> > buffer and doing decode-coding-region there.  Emacs is likely the
> > same.  :-)
> 
> Nope, XEmacs does not have the concept of buffer multibyteness.
> 
> - If buffer multibyteness is on, both input and output of
> `decode-coding-region' are treated as multibyte.  I think the input
> should be unibyte since it is byte stream.
> 
> - If buffer multibyteness is off, both input and output of
> `decode-coding-region' are treated as unibyte.  So, you have to convert
> the output to multibyte manually.
> 
> I'd recommend to use `decode-coding-string' and `insert' instead of
> `decode-coding-region', if unsure.

Why? you can always set-buffer-multibyte to the right mode, at least
in Emacs.

Again, operations on buffers are much more efficient in Emacs than on
strings.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]