Force binary mode for stdout in printf tests
This allows test calls to produce output with \n line separators on Windows, instead of \r\n. Reduces the number of ifdefs, since all checks can be done against one template on all platforms.
This allows test calls to produce output with \n line separators on Windows, instead of \r\n. Reduces the number of ifdefs, since all checks can be done against one template on all platforms.