----- Original Message ----- From: "Santiago Ruano Rincón" <santi...@debian.org>
To: "Igor O. Ladygin" <a...@zabtrans.ru>; <624...@bugs.debian.org>
Sent: Friday, April 29, 2011 4:32 PM
Subject: Re: Bug#624387: grep: Incorrect bracket expression parsing with national locale


On 29/04/11 02:50, Igor O. Ladygin wrote:

Sorry, I wrongly have tested grep from Lenny... grep 2.7-2 too
does not work:

grep -V grep (GNU grep) 2.7 Copyright (C) 2010 Free Software
Foundation, Inc. License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>. This is free software: you are
free to change and redistribute it. There is NO WARRANTY, to the
extent permitted by law.

Written by Mike Haertel and others, see
<http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.

proxy:/home/assa# echo Пример|grep -qE "[Пп]ример"; echo $? 1

:(

Sent by ASSA

Igor,

Could you try upgrading libc6, please? I've installed ru_RU.KOI8-R and
I got 0 with both grep versions, 2.6.3 and 2.7

santiago@nomada:~$ grep -V | grep grep
GNU grep 2.6.3
santiago@nomada:~$ LC_ALL=ru_RU.KOI8-R echo Пример|grep -qE
"[Пп]ример"; echo $?
0

santiago@nomada:~$ grep -V | grep grep
grep (GNU grep) 2.7
Written by Mike Haertel and others, see
<http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.

santiago@nomada:~$ LC_ALL=ru_RU.KOI8-R echo Пример|grep -qE
"[Пп]ример"; echo $?
0

I'm using libc6 2.11.2-11.

proxy:/home/assa# dpkg -s libc6 | grep ^Version
Version: 2.11.2-10
proxy:/home/assa# ./grep -V
GNU grep 2.5.3

Copyright (C) 1988, 1992-2002, 2004, 2005  Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

proxy:/home/assa# echo Пример|./grep -qE "[Пп]ример"; echo $?
0
proxy:/home/assa# grep -V
grep (GNU grep) 2.7
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Mike Haertel and others, see <http://git.sv.gnu.org/cgit/grep.git/tree/AUTHORS>.
proxy:/home/assa# echo Пример|grep -qE "[Пп]ример"; echo $?
1

You think a problem in libc6 2.11.2-10?



--
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