[Bug 663224] Re: grep does not work with 8-bit characters in bracket expressions

Launchpad Bug Tracker 663224 at bugs.launchpad.net
Tue Aug 6 04:17:29 UTC 2013


[Expired for grep (Ubuntu) because there has been no activity for 60
days.]

** Changed in: grep (Ubuntu)
       Status: Incomplete => Expired

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

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