Package: grep
Followup-For: Bug #350206

I guess this is the same problem.

piper:~> echo $'\353'
ë                    
piper:~> echo $'\353' | grep -q . || echo no match && echo match
no match                                          
piper:~> locale | grep CTYPE
LC_CTYPE=en_GB.UTF-8
piper:~> echo $'\353' | LC_CTYPE=latin1 grep -q . || echo no match && echo match
match

I have a unicode locale and $'\353' is the latin1 representation of
ë, which is single-byte. This is, I believe, the cause why grep, in
a unicode environment, fails to match . against single-byte
characters.

I think grep's . should match single-byte characters even in
multibyte environment.

-- 
 .''`.   martin f. krafft <[EMAIL PROTECTED]>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems

Attachment: signature.asc
Description: Digital signature (GPG/PGP)

Reply via email to