testsuite: use binary mode for stdout on Windows
It's much easier than adjusting the test logic to account for the extra \r.
(cherry picked from commit e2f68571173f92dd6add49dba795166957627ecb)
It's much easier than adjusting the test logic to account for the extra \r.
(cherry picked from commit e2f68571173f92dd6add49dba795166957627ecb)