Package: grep
Version: 2.6.3-3
Severity: Normal

I am facing a problem while using Russian locale with grep:

$locale
LANG=ru_RU.KOI8-R
LC_CTYPE=ru_RU.KOI8-R
LC_NUMERIC="ru_RU.KOI8-R"
LC_TIME="ru_RU.KOI8-R"
LC_COLLATE=ru_RU.KOI8-R
LC_MONETARY="ru_RU.KOI8-R"
LC_MESSAGES="ru_RU.KOI8-R"
LC_PAPER="ru_RU.KOI8-R"
LC_NAME="ru_RU.KOI8-R"
LC_ADDRESS="ru_RU.KOI8-R"
LC_TELEPHONE="ru_RU.KOI8-R"
LC_MEASUREMENT="ru_RU.KOI8-R"
LC_IDENTIFICATION="ru_RU.KOI8-R"
LC_ALL=

$ locale -a
C
POSIX
ru_RU.koi8r
russian

$ls -la /usr/share/i18n/locales/ru_RU
-rw-r--r-- 1 root root 5438 Jan 24 05:25 /usr/share/i18n/locales/ru_RU

$grep -V
GNU grep 2.6.3

Copyright (C) 2009 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.

$echo Пример|grep -qE "[Пп]ример"; echo $?
1

$echo Sример|grep -qE "[Ss]ример"; echo $?
0

Grep from Lenny work successfully:

$./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.

$echo Пример|./grep -qE "[Пп]ример"; echo $?
0

The problem grep with KOI8-R is confirmed by other users, but with UTF-8 no problems. I am using:

$uname -a
Linux proxy 2.6.32-5-686 #1 SMP Tue Mar 8 21:36:00 UTC 2011 i686 GNU/Linux

$dpkg -s libc6 | grep ^Version
Version: 2.11.2-10

Sent by ASSA



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