[PLUG] env LANG=C -resolved

Marvin lamsokvr at xprt.net
Sat Nov 2 01:51:07 UTC 2002


Hare are my results....  

Debkos:/home/mkosmal/test# LANG=C ls -l
total 0
-rw-r--r--    1 root     root            0 Nov  1 17:46 A
-rw-r--r--    1 root     root            0 Nov  1 17:46 B
-rw-r--r--    1 root     root            0 Nov  1 17:46 C
-rw-r--r--    1 root     root            0 Nov  1 17:46 a
-rw-r--r--    1 root     root            0 Nov  1 17:46 b
-rw-r--r--    1 root     root            0 Nov  1 17:46 c
Debkos:/home/mkosmal/test# LANG=en_US ls -l
total 0
-rw-r--r--    1 root     root            0 Nov  1 17:46 A
-rw-r--r--    1 root     root            0 Nov  1 17:46 B
-rw-r--r--    1 root     root            0 Nov  1 17:46 C
-rw-r--r--    1 root     root            0 Nov  1 17:46 a
-rw-r--r--    1 root     root            0 Nov  1 17:46 b
-rw-r--r--    1 root     root            0 Nov  1 17:46 c

What am I missing????

Marvin

On Friday 01 November 2002 5:41 pm, Russell Senior wrote:
> >>>>> "Marvin" == Marvin  <lamsokvr at xprt.net> writes:
>
> Russell> One of the *important* differences between LANG=C and
> Russell> LANG=en_US is that capitalization matters in the former and
> Russell> not in the latter, that is LANG=C is in ASCII order,
> Russell> LANG=en_US is in alphabetic order.  Old timers like me are
> Russell> used to the LANG=C behavior.
>
> Carla> Thanks Russell, that's the kind of information I've been
> Carla> looking for.
>
> Marvin> So that means that in LANG=C, "A" is 41h?  What is "A" in
> Marvin> LANG=en_US ?
>
> It doesn't matter what code it is, it is only the order that is
> important to collating operations.  In other words, for en_US, "A" has
> the same value as "a".
>
> Try this little experiment:
>
>   mkdir test
>   cd test
>   touch a A b B c C
>
> then
>
>   LANG=C ls -l
>
> then
>
>   LANG=en_US ls -l
>
> Notice the difference?





More information about the PLUG mailing list