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



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to