diff options
author | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-04-24 20:13:18 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@gmx.de> | 2013-04-24 20:13:18 +0200 |
commit | 667010554b30c46e35b9cad62edcfa01e37e1576 (patch) | |
tree | 418f828288c6c5c5ba0e6a18775af855966579f0 /sys/src/cmd/grep | |
parent | 78c7ba36a1a732c08fbb7e4f8b19d1bc825c5b7e (diff) |
make all the commands agnostic about Rune width. (from sources)
Diffstat (limited to 'sys/src/cmd/grep')
-rw-r--r-- | sys/src/cmd/grep/comp.c | 2 | ||||
-rw-r--r-- | sys/src/cmd/grep/grep.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/grep/comp.c b/sys/src/cmd/grep/comp.c index 7f807e87c..6be061bbc 100644 --- a/sys/src/cmd/grep/comp.c +++ b/sys/src/cmd/grep/comp.c @@ -275,7 +275,7 @@ re2class(char *s) x = re2or(x, rclass(ov, p[0]-1)); ov = p[1]+1; } - x = re2or(x, rclass(ov, 0xffff)); + x = re2or(x, rclass(ov, Runemask)); } else { x = rclass(p[0], p[1]); for(p+=2; *p; p+=2) diff --git a/sys/src/cmd/grep/grep.h b/sys/src/cmd/grep/grep.h index f1f02d4c7..ba7b26776 100644 --- a/sys/src/cmd/grep/grep.h +++ b/sys/src/cmd/grep/grep.h @@ -53,7 +53,7 @@ enum Caselim = 7, Nhunk = 1<<16, - Cbegin = 0x10000, + Cbegin = Runemax+1, Flshcnt = (1<<9)-1, Cflag = 1<<0, |