Make ls ctype-aware
This commit is contained in:
parent
36317691a4
commit
24891fb1df
@ -58,7 +58,7 @@ prcopy(src, dest, len)
|
||||
int ch;
|
||||
|
||||
while (len--) {
|
||||
ch = *src++;
|
||||
ch = *src++ & 0xff;
|
||||
*dest++ = isprint(ch) ? ch : '?';
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user