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: Daiki Ueno
Subject: Re: Need some help with Rmail/mbox
Date: Sat, 20 Sep 2008 19:04:33 +0900
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

>>>>> In <address@hidden> 
>>>>>   "Stephen J. Turnbull" <address@hidden> wrote:
> Paul Michael Reilly writes:
>  > But when I started to work on the decoding it seemed that decoding
>  > the string before inserting it seemed like a good idea.

> 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.  I heard that the reason why FLIM
does not use `{de|en}code-coding-region' is to avoid this confusion.

Regards,
-- 
Daiki Ueno




reply via email to

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