[Top][All Lists]
[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.
- Need some help with Rmail/mbox, Paul Michael Reilly, 2008/09/18
- Need some help with Rmail/mbox, Stephen J. Turnbull, 2008/09/18
- Re: Need some help with Rmail/mbox, Paul Michael Reilly, 2008/09/19
- Re: Need some help with Rmail/mbox, Eli Zaretskii, 2008/09/19
- Re: Need some help with Rmail/mbox, Stephen J. Turnbull, 2008/09/20
- Re: Need some help with Rmail/mbox, Daiki Ueno, 2008/09/20
- Re: Need some help with Rmail/mbox,
Eli Zaretskii <=
- Re: Need some help with Rmail/mbox, Daiki Ueno, 2008/09/20
- Re: Need some help with Rmail/mbox, Eli Zaretskii, 2008/09/20
- Re: Need some help with Rmail/mbox, Richard M. Stallman, 2008/09/20
- Re: Need some help with Rmail/mbox, Eli Zaretskii, 2008/09/20
- Re: Need some help with Rmail/mbox, Stefan Monnier, 2008/09/21
- Re: Need some help with Rmail/mbox, Eli Zaretskii, 2008/09/21
- Re: Need some help with Rmail/mbox, Stefan Monnier, 2008/09/21
- Re: Need some help with Rmail/mbox, Eli Zaretskii, 2008/09/21
- Re: Need some help with Rmail/mbox, Stefan Monnier, 2008/09/21
- Re: Need some help with Rmail/mbox, Eli Zaretskii, 2008/09/21