On Sat, 2 Aug 2003 16:11:58 +0900, GOTO Masanori wrote: > At Sat, 2 Aug 2003 03:23:35 +0200, > Micha-B? Politowski wrote: > > On Sat, 2 Aug 2003 00:44:16 +0200, Artur R. Czechowski wrote: > > > When LC_COLLATE is set to pl_PL [] glob does not work correctly: > > > > > arturcz@zlom:/tmp/bash-test$ echo $LC_COLLATE > > > pl_PL > > > arturcz@zlom:/tmp/bash-test$ touch a b C c D e F G h > > > arturcz@zlom:/tmp/bash-test$ echo [A-Z] > > > b c C D e F G h > > > arturcz@zlom:/tmp/bash-test$ export LC_COLLATE=C > > > arturcz@zlom:/tmp/bash-test$ echo [A-Z] > > > C D F G > > You should set LC_CTYPE. Only setting LC_COLLATE does not work > correctly, because collation elements are defined in LC_CTYPE > category. > > bash-2.05b$ env LC_COLLATE=pl_PL LC_CTYPE=pl_PL echo [A-Z] > C D F G > bash-2.05b$ env LC_COLLATE=pl_PL LC_CTYPE=pl_PL echo [a-Z] > [a-Z] How does this prove anything, when the current shell expands the pattern and only the child changes locales? And actually the value of LC_CTYPE doesn't seem to have any effect on Artur's example, though I suppose you are right saying that in principle it could. And I'll repeat, I would consider matching lowercase b,c,e and h by [A-Z] under pl_PL collating order reasonable, thus correct, so yes, this bug should be closed. -- Michał Politowski -- mpol@charybda.icm.edu.pl Warning: this is a memetically modified message
Attachment:
pgp3EwC2WEiO4.pgp
Description: PGP signature