mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-21 15:45:02 +00:00
Make ls ctype-aware
This commit is contained in:
parent
36317691a4
commit
24891fb1df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2955
@ -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