Subject: Re: finger
To: Johan Danielsson <email@example.com>
From: Noriyuki Soda <firstname.lastname@example.org>
Date: 09/12/2002 22:33:02
>>>>> On 12 Sep 2002 15:23:22 +0200, email@example.com (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.