Your message dated Wed, 21 Jul 2010 19:58:55 +1000
with message-id <[email protected]>
and subject line Re: Bug#589808: grep: Odd result with [A-Z] and non-C locale
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 ---
Version: 2.6.3-3
On Wed, Jul 21, 2010 at 11:54:34AM +0200, Samuel Thibault wrote:
>Aníbal Monsalve Salazar, le Wed 21 Jul 2010 19:49:33 +1000, a écrit :
>>On Wed, Jul 21, 2010 at 02:23:05AM +0200, Samuel Thibault wrote:
>>>So cla doesn't match \<cl[A-Z] but cle does!
>>
>>Please see http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577095#20
>
>I know that it exists, I just never remember the precise syntax while
>[A-Z] is easy to remember :) (and LC_COLLATE=C too).
>
>Samuel
--- End Message ---