commit - 2bde567347dddd3dc09d3eaf9185ee2c45e21c6b
commit + 3e899d02030f6456d22060f929efb8260c9dd511
blob - 46e98e15d182be9044d7862a9555dbb5c351acba
blob + 036967d6d6edcd58999ea2220e1944c794cf86cc
--- src/cmd/tr.c
+++ src/cmd/tr.c
SETBIT(t, c);
}
- last = 0x10000;
+ last = Runemax+1;
while (readrune(0, &c) > 0) {
if(!BITSET(f, c) && (c != last || !BITSET(t,c))) {
last = c;
else p[i] = i;
}
if (sflag){
- lastc = 0x10000;
+ lastc = Runemax+1;
while (readrune(0, &from) > 0) {
if (from > high)
from = to;
SETBIT(t,to);
}
if (sflag){
- lastc = 0x10000;
+ lastc = Runemax+1;
while (readrune(0, &from) > 0) {
if (from <= high)
from = p[from];