[Bug libfortran/27046] [mingw32] mixed C-Fortran I/O doesn't flush

fxcoudert at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Wed Sep 20 07:50:00 GMT 2006

------- Comment #8 from fxcoudert at gcc dot gnu dot org  2006-09-20 07:50 -------
(In reply to comment #7)
> If you stll think that this is a libgfortran bug (I don't)
> you could add 
>   setvbuf(stdout, NULL, _IOLBF, 0);
> to unix.c:output_stream() so that stdout always is line-buffered even when
> !isatty(fileno(stdout)) 

Indeed, I think the bug is in the user's code, but I think there's no serious
drawback to the setvbuf workaround you mention.


fxcoudert at gcc dot gnu dot org changed:

           What    |Removed                     |Added
   Last reconfirmed|2006-06-12 16:30:13         |2006-09-20 07:50:15
               date|                            |


More information about the Gcc-bugs mailing list