Your message dated Sat, 10 Apr 2010 16:06:12 +1000
with message-id <20100410060612.ga3...@master.debian.org>
and subject line Re: Bug#577095: grep: bracket expressions fails depending on 
the locale
has caused the Debian Bug report #577095,
regarding grep: bracket expressions fails depending on the locale
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
577095: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577095
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: grep
Version: 2.6.3-1
Severity: grave

As this issue might affact a lot of cases where grep is used, I've
decided to file it with the severity grave.

Since version 2.6.3 (and it seems also 2.5.2 was affected), the
behaviour of grep regarding capital letters in bracket expressions
changed when using UTF8:

With grep 2.6.3:
b...@think ~% LANG=en_US.UTF-8 grep -E '^[A-Z]' /etc/passwd | wc -l        
51
b...@think ~% LANG=C grep -E '^[A-Z]' /etc/passwd        
Debian-exim:x:100:103::/var/spool/exim4:/bin/false
b...@think ~% LANG=de_DE.iso8859-15 grep -E '^[A-Z]' /etc/passwd 
Debian-exim:x:100:103::/var/spool/exim4:/bin/false

With grep 2.5.4-4:
b...@think ~% LANG=en_US.UTF-8 grep -E '^[A-Z]' /etc/passwd        
Debian-exim:x:100:103::/var/spool/exim4:/bin/false
b...@think ~% LANG=C grep -E '^[A-Z]' /etc/passwd          
Debian-exim:x:100:103::/var/spool/exim4:/bin/false
b...@think ~% LANG=de_DE.iso8859-15 grep -E '^[A-Z]' /etc/passwd   
Debian-exim:x:100:103::/var/spool/exim4:/bin/false

This behaviour change is not expected and different from what other
implementations do.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.33-think (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grep depends on:
ii  dpkg                      1.15.5.6       Debian package management system
ii  install-info              4.13a.dfsg.1-5 Manage installed documentation in 
ii  libc6                     2.10.2-6       Embedded GNU C Library: Shared lib

grep recommends no packages.

Versions of packages grep suggests:
ii  libpcre3                      7.8-3      Perl 5 Compatible Regular Expressi

-- no debconf information



--- End Message ---
--- Begin Message ---
Version: 2.6.3-1

On Sat, Apr 10, 2010 at 01:54:51PM +0900, Norihiro Tanaka wrote:
>Hi,
>
>I seem that is expected behavior. [A-Z] includes  A,b,B,c,C,...y,Y,z,Z
>in en_US locale (not include `a').

Right. Closing this bug report accordingly.

grep -E '^[[:upper:]]' /etc/passwd

You could use the command above.


--- End Message ---

Reply via email to