Subject: Re: finger
To: Johan Danielsson <joda@pdc.kth.se>
From: Noriyuki Soda <soda@sra.co.jp>
List: tech-userlevel
Date: 09/12/2002 22:33:02
>>>>> On 12 Sep 2002 15:23:22 +0200, joda@pdc.kth.se (Johan Danielsson) said:

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

fgetwc() should return WEOF with errno == EILSEQ.

> 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?

Yes, this is certainly possible (although probably this shoudn't be
default.), if our locale implementation is robust enough. 
--
soda