diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1996-03-10 23:33:48 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1996-03-10 23:33:48 +0000 |
commit | a0a47889223c50f41d784311a49c924884d4f9c4 (patch) | |
tree | 99590b8da33de4e6eb8f06bf488de58dc416feb3 /usr.bin/finger | |
parent | 0946c36c96b60bd1cef4f5537f394828eacc37a7 (diff) | |
download | src-a0a47889223c50f41d784311a49c924884d4f9c4.tar.gz src-a0a47889223c50f41d784311a49c924884d4f9c4.zip |
Print 8bit chars from the net if current locale allows them
Notes
Notes:
svn path=/head/; revision=14472
Diffstat (limited to 'usr.bin/finger')
-rw-r--r-- | usr.bin/finger/net.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/finger/net.c b/usr.bin/finger/net.c index f5789ad9818a..697e86264717 100644 --- a/usr.bin/finger/net.c +++ b/usr.bin/finger/net.c @@ -141,15 +141,16 @@ netfinger(name) int lastc = '\n'; while ((c = getc(fp)) != EOF) { - c &= 0x7f; if (c == 0x0d) { if (lastc == '\r') /* ^M^M - skip dupes */ continue; c = '\n'; lastc = '\r'; } else { - if (!isprint(c) && !isspace(c)) + if (!isprint(c) && !isspace(c)) { + c &= 0x7f; c |= 0x40; + } if (lastc != '\r' || c != '\n') lastc = c; else { |