qhuo/ninja — comment on commit 58d382b205d3934459790ea64ccb58cf68129193
File:  line 0
By martine:

BTW, I recently encountered this problem. It turns out _IOLBF is ignored on Windows, so your only option is either unbuffered or manually flushing.