Just for other people following this, the problem also came up in bzr that win32 Python defaults to having stdout in text mode, in which case it damages streams in this format. See bug 551332.
Just for other people following this, the problem also came up in bzr that win32 Python defaults to having stdout in text mode, in which case it damages streams in this format. See bug 551332.