emacs-pretest-bug
[Top][All Lists]
Advanced

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

Re: `.newsrc.eld' saves chinese group name in wrong coding


From: Stefan Monnier
Subject: Re: `.newsrc.eld' saves chinese group name in wrong coding
Date: Mon, 23 Oct 2006 15:16:44 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>     This said, I agree that Emacs should help more.  E.g. by signalling an
>     error when trying to insert multibyte text into a unibyte buffer.

> This operation converts the string to unibyte.

Indeed.  Using a default (and poorly specified) encoding method.

> It works correctly, provided the characters in that string can be
> expressed in the unibyte buffer.

But which characters can be expressed is poorly specified.  E.g. Tell me
which chars can be expressed in a unibyte buffer in a BIG5 locale?

> If people generally agree it would be better to signal an error,
> we could do that.  However, that would cause trouble trying to use
> M-y to move past multibyte entries in the kill ring to reach the
> unibyte entry you really want.

When the insertion is a user-level operation, the elisp code should make
sure to manually do the encoding/decoding, using e.g. the default file
coding-system.


        Stefan




reply via email to

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