K 10 svn:author V 4 ache K 8 svn:date V 27 2016-09-01T20:45:04.917509Z K 7 svn:log V 236 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. MFC after: 7 days END