Package: grep Version: 2.6.3-3 Severity: normal Tags: upstream
character classes do not work with non-ASCII 8-bit locale. Typescript is below. GNU awk works correctly. \335 is an uppercased cyrillic letter. $ locale -a | grep ru_RU.cp1251 ru_RU.cp1251 $ printf '\335' | LC_CTYPE=ru_RU.cp1251 grep '[[:upper:]]' | wc -l 0 $ printf '\335' | LC_CTYPE=ru_RU.cp1251 gawk '/[[:upper:]]/' | wc -l 1 $ -- System Information: Debian Release: 6.0.6 APT prefers stable APT policy: (990, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-486 Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968) Shell: /bin/sh linked to /bin/dash Versions of packages grep depends on: ii dpkg 1.15.8.13 Debian package management system ii install-info 4.13a.dfsg.1-6 Manage installed documentation in ii libc6 2.11.3-4 Embedded GNU C Library: Shared lib grep recommends no packages. Versions of packages grep suggests: ii libpcre3 8.02-1.1 Perl 5 Compatible Regular Expressi -- no debconf information -- To UNSUBSCRIBE, email to [email protected] with a subject of "unsubscribe". Trouble? Contact [email protected]

