Hello, 1) I cannot reproduce this on current Debian. 2) The respective code is not located in find, re_match() is part of libc. 3) The fact that regex are locale dependent is expected behavior, e.g. in the Estonian alphabet Z is not the last letter and therefore e.g Y is not in 'A-Z'. 4) To matching upper case letters you should use the respect collation sequence ([[:upper:]] instead of [A-Z]) or reset LC_COLLATE to C.
Given all that, afaict from Google it looks like some in some versions of libc '[A-Z]' includes lower case letters in en_US.UTF-8 locale while in others it does not. See also #120687 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/585648 Title: find regex does not work properly To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/findutils/+bug/585648/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs