Re: WARNING: potato has horrible broken locales
On Mon, Sep 04, 2000 at 12:50:07PM +0200, Peter Makholm wrote:
[...]
> It will break scripts, but it doesn't seem like anyone cares about
> that (Ohhh, I imagine there is a major flamer war going on
> somewhere). The future proof and locale portable way to do the above
> is:
>
> ls /dev/tty[[:lower:]]0
>
> On pandora I just did the following:
> $ touch a b c A B C
> $ echo [[:lower:]]
> a b c
> $ echo [[:upper:]]
> A B C
> $ echo [a-c]
> a b c
> $
Yes, you have unset|C|POSIX locale.
$ touch a b c A B C
$ echo [[:lower:]]
a b c
$ echo [[:upper:]]
A B C
$ export LC_ALL=pl_PL;
$ echo [a-c]
a A b B c
$ export LC_ALL=en_US;
$ echo [a-c]
a B b C c
:(
See what a wonderful sort (from bug my report #69544):
$ sort
a
b
a
b
,a
,b
#a
#b
gives:
a
,a
#a
a
b
,b
#b
b
Mirek
--
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: