Your message dated Tue, 3 Dec 2013 16:05:55 +0100
with message-id <20131203150555.GA31976@holmon>
and subject line grep: Closing
has caused the Debian Bug report #589808,
regarding grep: Odd result with [A-Z] and non-C 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 [email protected]
immediately.)
--
589808: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=589808
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: grep
Version: 2.6.3-3
Severity: normal
Hello,
$ echo cla | LC_ALL=fr_FR grep '\<cl[A-Z]' && echo found
$ echo cle | LC_ALL=fr_FR grep '\<cl[A-Z]' && echo found
cle
found
$ echo clA | LC_ALL=fr_FR grep '\<cl[A-Z]' && echo found
clA
found
$ echo clE | LC_ALL=fr_FR grep '\<cl[A-Z]' && echo found
clE
found
$
$ echo cle | LC_ALL=C grep '\<cl[A-Z]' && echo found
$ echo cle | LC_ALL=C grep 'cl[A-Z]' && echo found
$
So cla doesn't match \<cl[A-Z] but cle does!
Samuel
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.34 (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages grep depends on:
ii dpkg 1.15.7.2 Debian package management system
ii install-info 4.13a.dfsg.1-5 Manage installed documentation in
ii libc6 2.11.2-2 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
--
Samuel Thibault <[email protected]>
mdiym42: note to self
mdiym42: make sure your cat is not sleeping in the bass drum before you start
playing them
--- End Message ---
--- Begin Message ---
Package: grep
Version: 2.15-2
Followup-For: Bug #589808
Hi,
$ echo cle | LC_ALL=fr_FR grep --color=auto 'cl[[:alpha:]]' && echo found
cle
found
$ echo clA | LC_ALL=fr_FR grep --color=auto 'cl[[:alpha:]]' && echo found
clA
found
both command color matches in red. So I think we can close this bug.
Regards,
Santiago
-- System Information:
Debian Release: 7.2
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable'), (10, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.2.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages grep depends on:
ii dpkg 1.16.12
ii install-info 4.13a.dfsg.1-10
ii libc6 2.17-96
ii libpcre3 1:8.31-2
grep recommends no packages.
grep suggests no packages.
-- no debconf information
--- End Message ---