bug-coreutils
[Top][All Lists]
Advanced

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

Range problem in expr regex


From: Philip Rowlands
Subject: Range problem in expr regex
Date: Mon, 5 Nov 2007 15:54:01 +0000 (GMT)

$ export LC_ALL=en_US
$ ./expr --version
expr (GNU coreutils) 6.9-354-68c33a
$ ./expr "a" : "[A-Z]"
0
$ ./expr "b" : "[A-Z]"
1
$ ./expr "a" : "address@hidden"
1

Although I see that POSIX has left the implementation of non-POSIX locales undefined with respect to range expressions in regexes, this looks like a bug nonetheless.

I got as far as regexec.c before getting confused. Problem in expr, or problem in the locale definition files on my machine?


Cheers,
Phil




reply via email to

[Prev in Thread] Current Thread [Next in Thread]