Yep, my earlier report turned out to be under > locale LANG=en_CA
When changed to LANG=C, the behaviour is fine. Cheers, TAA ----------------------------------------------------- Tony Abou-Assaleh Lecturer, Computer Science Department Brock University, St. Catharines, ON, Canada, L2S 3A1 Office: MC J215 Tel: +1(905)688-5550 ext. 5243 Fax: +1(905)688-3255 Email: [EMAIL PROTECTED] WWW: http://www.cosc.brocku.ca/~taa/ ----------------------[THE END]---------------------- On Mon, 6 Mar 2006, Jan Wielemaker wrote: > On Monday 06 March 2006 10:29, Tim Waugh wrote: > > On Mon, Mar 06, 2006 at 01:11:50AM -0400, Tony Abou-Assaleh wrote: > > > Thanks Jan for the report. > > > > > > I confirm that this bug applies to the cvs version of grep. The example > > > reported, however, behaves differently on my environment. > > > > The original reporter is seeing the correct implementation of the > > locale stuff, I imagine. > > gollem (~) 1_> locale > LANG=en_GB.UTF-8 > LC_CTYPE="en_GB.UTF-8" > LC_NUMERIC="en_GB.UTF-8" > LC_TIME="en_GB.UTF-8" > LC_COLLATE="en_GB.UTF-8" > LC_MONETARY="en_GB.UTF-8" > LC_MESSAGES="en_GB.UTF-8" > LC_PAPER="en_GB.UTF-8" > LC_NAME="en_GB.UTF-8" > LC_ADDRESS="en_GB.UTF-8" > LC_TELEPHONE="en_GB.UTF-8" > LC_MEASUREMENT="en_GB.UTF-8" > LC_IDENTIFICATION="en_GB.UTF-8" > LC_ALL= > > System is using glibc 2.3.5. I can confirm that the bug disappears when > doing > > gollem (~) 3_> LANG=C grep '[A-Z]' > a > ab > > So it is locale related. The --color tests give the expected -correct- > results on my default locale (en_GB.UTF-8). > > --- Jan >
