From 5475ac279dfdeb5b3d0a162d635b3439469a0ff4 Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Sun, 6 Jan 2013 22:25:18 +0100 Subject: [PATCH] tests/server/sockfilt.c: Set Windows Console to binary mode --- tests/server/sockfilt.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c index 34eb20b99..38015e22f 100644 --- a/tests/server/sockfilt.c +++ b/tests/server/sockfilt.c @@ -1087,6 +1087,10 @@ int main(int argc, char *argv[]) #ifdef WIN32 win32_init(); atexit(win32_cleanup); + + setmode(fileno(stdin), O_BINARY); + setmode(fileno(stdout), O_BINARY); + setmode(fileno(stderr), O_BINARY); #endif install_signal_handlers();