https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61739
Rich Felker <bugdal at aerifal dot cx> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |UNCONFIRMED Resolution|INVALID |--- --- Comment #3 from Rich Felker <bugdal at aerifal dot cx> --- Yes it does need to obtain ownership of the file: to set the orientation to byte mode. This is required even by ISO C (without POSIX). A simpler test case: printf(""); printf("%d\n", fwide(stdout));