On Tue, Apr 07, 2009 at 09:24:38PM +0200, Adeodato Simó wrote:
+ 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?
I’m genuinely interested if that would behave any different to what you
said (unsetting all, setting LC_CTYPE).
% sudo localedef -c -i POSIX -f UTF-8 C.UTF-8
% LANG=C.UTF8 locale charmap
UTF-8
% LANG=C locale charmap
ANSI_X3.4-1968
This appears to work correctly at first glance.
However, I would ideally like the C/POSIX locales to be UTF-8
by default as on other systems (with a C.ASCII variant if required).