Subject: Re: finger
To: None <>
From: Johan Danielsson <>
List: tech-userlevel
Date: 09/12/2002 15:23:22 writes:

> you are unsure what kind of encoding is used for the data sent from
> fingerd.

So, if you fgetwc something that isn't in the correct coding, it's
designed to blow up, or what?

Why can't you just get the coding from LANG (or whatever), and just
assume that the data is in that format, and if it isn't fgetwc or
iswprint should complain? It will of course not work (as in produce
meaningful output) when the charsets mismatch, but in that case you
lose anyway.