HomeFreeBSD

MFC r305241

Description

MFC r305241

fgetwc(3) may set both SEOF and SERR at once (in case of incomplete
sequence near EOF), so we can't just check for
(wc == WEOF && !sfeof(fp)) and must relay on sferror(fp) with
__SERR clearing/restoring.

Details

Provenance
acheAuthored on
Parents
rS305403: MFC r305241
Branches
Unknown
Tags
Unknown