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: Fri, 20 Oct 2006 18:06:09 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

>> > I'd say this design decision will certainly cause subtle bugs, such as
>> > the one we are discussing in this thread.  I suggest to modify the
>> > design to not use encoded strings internally.
>> 
>> It could be, although it would make sense to manipulate group names in
>> "encoded" form, in the sense of "not decoded".

> It could ``make sense'', but it's IMO a bad idea, since, as we both
> know, Emacs is not well suited to handling unibyte strings.

Huh?  Unibyte strings are perfectly well supported as far as I know.

You have to be careful to remember which strings are unibyte and which are
multibyte, so you don't decode multibyte strings or encode unibyte strings,
and especially not implicitly (by inserting a unibyte string in a multibyte
buffer or vice versa).  So if you mean that it requires discipline, then
I agree, but otherwise I don't know what you're referring to.


        Stefan




reply via email to

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