Testiness.

Bernd Petrovitsch bernd at firmix.at
Thu Sep 1 08:06:38 UTC 2005


On Wed, 2005-08-31 at 23:31 -0600, Stephen Warren wrote:
> Stephen Warren wrote:
> > Ihno Krumreich wrote:
> > 
> >>For en_US.UTF-8 it looks like:
> >>
> >>ihno at uttenreuth:~/collate> echo $LANG
> >>en_US.UTF-8
> >>ihno at uttenreuth:~/collate> echo [a-z]*
> >>abc ABC zig
> >>ihno at uttenreuth:~/collate> echo *
> >>abc ABC zig ZIG
> > 
> > Surely, you mean this:
> >
> > ihno at uttenreuth:~/collate> echo [a-z]*
> > abc ABC zig ZIG     <--- extra word here
> > ihno at uttenreuth:~/collate> echo *
> > abc ABC zig ZIG
> 
> Oh. I just tested it, and it really does that first thing.
> 
> That's too screwed up.

And *this* is not fixable at the level it was introduced and thus brakes
the whole thing.
To fix it, set LC_COLLATE. This breaks probably other thigs ....
----  snip  ----
{18}echo $LANG
en_US.UTF-8
{19}echo *
abc ABC zig ZIG
{20}echo [a-z]*
abc ABC zig
{21}export LC_COLLATE=C
{22}echo [a-z]*
abc zig
----  snip  ----

	Bernd
-- 
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services




More information about the busybox mailing list