[Bug 663224] Re: grep does not work with 8-bit characters in bracket expressions
Ma Xiaojun
damage3025 at gmail.com
Thu Jun 6 14:18:25 UTC 2013
Cannot reproduce your problem with the following box. What's the lowest
version of Ubuntu that can still reproduce your bug?
$ lsb_release -rd
Description: Ubuntu Saucy Salamander (development branch)
Release: 13.10
$ apt-cache policy grep
grep:
Installed: 2.14-2
Candidate: 2.14-2
Version table:
*** 2.14-2 0
500 mirror://mirrors.ubuntu.com/mirrors.txt/ saucy/main amd64 Packages
100 /var/lib/dpkg/status
** Changed in: grep (Ubuntu)
Status: New => Incomplete
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to grep in Ubuntu.
https://bugs.launchpad.net/bugs/663224
Title:
grep does not work with 8-bit characters in bracket expressions
Status in “grep” package in Ubuntu:
Incomplete
Bug description:
Binary package hint: grep
A command like "grep '[abcd]'", but with 8-bit charaters in place of
[abcd], does not work properly. It fails to match anything.
Why I care: constructions like this are used when building rus-ispell
packages (Russian dictionaries for spell checkers) in order to
generate variants of use of the Cyriilic Yo letter. Because of this
bug, the resulting dictionaries are incomplete.
Test script:
===
#!/bin/sh
LANG=C
LC_ALL=C
export LANG LC_ALL
printf '\100' | grep -c `printf '\100'` -
printf '\100' | grep -c `printf '[\100]'` -
printf '\200' | grep -c `printf '\200'` -
printf '\200' | grep -c `printf '[\200]'` -
===
Output:
1
1
1
0
Expected output:
1
1
1
1
Version information:
~$ lsb_release -rd
Description: Ubuntu 10.10
Release: 10.10
~$ apt-cache policy grep
grep:
Installed: 2.6.3-3
Candidate: 2.6.3-3
Version table:
*** 2.6.3-3 0
500 http://ru.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/grep/+bug/663224/+subscriptions
More information about the foundations-bugs
mailing list