On Sun, 11 Feb 2018, Andreas Schwab wrote: > AFAICS, this is an area where we are not conforming to the C standard > (the EOF indicator is supposed to be sticking, see fgetc, and only > clearerr can fix that). This is bug 1190. -- Joseph S. Myers joseph@codesourcery.com