maharmstone / ntfs2btrfs

GNU General Public License v2.0
683 stars 30 forks source link

Flush cerr after writing #5

Open yretenai opened 4 years ago

yretenai commented 4 years ago

cerr is not flushed with endl or program exit on windows.

maharmstone commented 4 years ago

I'd be very surprised if this does anything - the section lib.support.start.term of the C++ specs guarantees that all streams get flushed on termination.

Have you observed this to fix a bug, or is it just a hunch?

yretenai commented 4 years ago

Observed the bug, reproduced it on my system both with Powershell and cmd/conhost. Adding flush makes the program output as expected. Might be a VC++ specific bug.

maharmstone commented 4 years ago

Okay then, thank you. It looks like something I need to look into, then...