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

Re: LANG=C not English?



Am 2008-03-08 09:07:41, schrieb Tzafrir Cohen:
> C != en_US
> 
> $ ( echo a ; echo B ) | sort
> a
> B
> 
> $ ( echo a ; echo B ) | LANG=C sort
> B
> a
> 
> $ ( echo a ; echo B ) | LC_COLLATE=C sort
> B
> a

There is something weird:

----8<------------------------------------------------------------------
16:36:49 [michelle.konzack@tp570.private:~] export LC_ALL=en_US
16:36:59 [michelle.konzack@tp570.private:~] export LANG=en_US
16:37:10 [michelle.konzack@tp570.private:~] locale
LANGUAGE=en:de:fr
LANG=en_US
LC_CTYPE="en_US"
LC_NUMERIC="en_US"
LC_TIME="en_US"
LC_COLLATE="en_US"
LC_MONETARY="en_US"
LC_MESSAGES="en_US"
LC_PAPER="en_US"
LC_NAME="en_US"
LC_ADDRESS="en_US"
LC_TELEPHONE="en_US"
LC_MEASUREMENT="en_US"
LC_IDENTIFICATION="en_US"
LC_ALL=en_US
16:37:12 [michelle.konzack@tp570.private:~] (echo a ; echo B) |sort
a
B
16:37:20 [michelle.konzack@tp570.private:~] (echo a ; echo B) | LANG=C sort
a
B
16:37:30 [michelle.konzack@tp570.private:~] (echo a ; echo B) | LC_COLLATE=C sort
a
B
16:36:49 [michelle.konzack@tp570.private:~] export LC_ALL=C
16:36:59 [michelle.konzack@tp570.private:~] export LANG=C
16:37:10 [michelle.konzack@tp570.private:~] locale
LANGUAGE=en:de:fr
LANG=C
LC_CTYPE="C"
LC_NUMERIC="C"
LC_TIME="C"
LC_COLLATE="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_PAPER="C"
LC_NAME="C"
LC_ADDRESS="C"
LC_TELEPHONE="C"
LC_MEASUREMENT="C"
LC_IDENTIFICATION="C"
LC_ALL=C
16:43:47 [michelle.konzack@tp570.private:~] (echo a ; echo B) | sort
B
a
16:43:53 [michelle.konzack@tp570.private:~] (echo a ; echo B) | LANG=en_US sort
B
a
16:43:56 [michelle.konzack@tp570.private:~] (echo a ; echo B) | LC_COLLATE=en_US sort
B
a
16:37:37 [michelle.konzack@tp570.private:~]
----8<------------------------------------------------------------------

It seems, passing "LANG=en_US" or "LC_COLLATE=en_US" does not take
effect an the same previously with "LANG=C" or "LC_COLLATE=C".

It is ignored...

> The built-in C locale has no sorting order. All others provide ordering
> of characters. And specifically, place each English small cap right
> after the capital one.
> 
> And not to mention that en_US does not use ascii. It used ISO-8859-1 and
> now should use UTF-8 like the rest of the civilized world.

If we have different results, then WHAT is different on the system?

Thanks, Greetings and nice Day
    Michelle Konzack
    Systemadministrator
    24V Electronic Engineer
    Tamay Dogan Network
    Debian GNU/Linux Consultant


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
+49/177/9351947    50, rue de Soultz         MSN LinuxMichi
+33/6/61925193     67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: