Subject: Re: finger
To: T.SHIOZAKI <tshiozak@bsdclub.org>
From: Johan Danielsson <joda@pdc.kth.se>
List: tech-userlevel
Date: 09/11/2002 23:57:35
"T.SHIOZAKI" <tshiozak@bsdclub.org> writes:

> I think that at least the finger *server* complying with RFC1288
> should not use isprint().  This server should simply work as:
>   - by default, only 0x20-0x7E are allowed.
>   - by optional, 0x80-0xFF are allowed.

I think so too. Only the client needs to look at the data.

> Our finger is quite old program.  Although good-old-day's libc was
> hard-coded to ASCII, the recent (ISO C compliant) libc is no longer
> so.

Yes, but what does this have to do with finger using isprint? What
stops you from doing something with fgetwc/iswprint/fputwc?

(Except possibly that the ones we have are broken and aborts at random
places).

/Johan