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

Re: Bug#522776: debian-policy: mandate existence of a standardised UTF-8 locale



Adeodato Simó dixit:

>+ Thorsten Glaser (Tue, 07 Apr 2009 18:54:59 +0000):
>
>> Except the ton which sets LC_ALL=C to get sane (parsable,
>> dependable, historically compatible) output.
>
>> These would then unset all other LC_* and LANG and LANGUAGE,
>> and only set LC_CTYPE to C.UTF-8 to get "old" behaviour but
>> with UTF-8 (and mbrtowc and iswctype and and and) available.
>
>Isn’t setting LC_ALL=C.UTF-8 going to be about the same and less work?

Indeed.

>I’m genuinely interested if that would behave any different to what you
>said (unsetting all, setting LC_CTYPE).

For my proposed C.UTF-8 "locale" it would be exactly zero, nada,
difference. (For en_US.UTF-8 it is a lot of difference, for example
sorting order.)

Unfortunately, GNU libc needs a locale to even enable UTF-8 support.

bye,
//mirabilos
-- 
“It is inappropriate to require that a time represented as
 seconds since the Epoch precisely represent the number of
 seconds between the referenced time and the Epoch.”
	-- IEEE Std 1003.1b-1993 (POSIX) Section B.2.2.2


Reply to: