emacs-devel
[Top][All Lists]
Advanced

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

Re: Cyrillic vs UTF-8


From: Simon Josefsson
Subject: Re: Cyrillic vs UTF-8
Date: Tue, 29 Apr 2003 16:27:59 +0200
User-agent: Gnus/5.09002 (Oort Gnus v0.20) Emacs/21.3.50 (gnu/linux)

"Stefan Monnier" <monnier+gnu/address@hidden> writes:

>> >> Can't we move binary down below UTF-8 in CVS?  IMHO we should move
>> >> UTF-8 earlier still, since determining whether data is UTF-8 or not
>> >> can be done with good probability.  Prefering binary over UTF-8 seems
>> >
>> > Agreed, but I think one of the problems is that the preference-ordering
>> > is the same for load-time-detection as it is for save-time-detection,
>> > so if you move utf-8 up for detection you end up saving all new files
>> > in utf-8 which is not OK in non-utf-8 locales.
>> 
>> This sounds serious in theory, but I was unable to make emacs behave
>> unexpectedly in practice.  Do you have an example?
>
> The problem only appears if you move utf-8 to the first spot.

But utf-8 hasn't been moved first, so this isn't a problem?

I agree it would be useful to be able to configure different loading
and saving time preferences.  Then I would be able to specify that
emacs should try to save data as ascii first, then latin-1, then
latin-9 and then UTF-8, then give up and ask.  On loading, I'd want it
to try latin-9 instead of latin-1 though.  In non-UTF-8 locales, I
think this behaviour is what many europeans would want.

> Moving it to the first spot otherwise makes sense since
> auto-detection of utf-8 is about as reliable as it gets.

Yup.





reply via email to

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