[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
grep \b not i18n-d after backreference
From: |
Joakim Lundborg |
Subject: |
grep \b not i18n-d after backreference |
Date: |
Fri, 27 Aug 2004 01:40:06 +0200 |
User-agent: |
Mozilla Thunderbird 0.7.3 (X11/20040819) |
I found a bug in grep 2.5.1, in context of backreferences \b is not
internationalized, but when in context of normal characters it is.
My locale is sv_SE.ISO-8859-1.
This is what I get in grep 2.5.1:
test.txt:
det stora huset
det enda ställe
$ egrep "de(n|t) \w+a \w+\1\b" test.txt
det stora huset
det enda ställe
But:
egrep "de(n|t) \w+a \w+t\b" test.txt
det stora huset
(which is the desired result)
Minimal testcase:
test.txt:
t tä
t t
grep "(t) \1\b" test.txt
Result:
t tä
t t
Should be:
t t
--
Joakim Lundborg
<address@hidden>
- grep \b not i18n-d after backreference,
Joakim Lundborg <=