$ 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" : "[EMAIL PROTECTED]"
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


_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to