mirror of
https://github.com/curl/curl.git
synced 2026-07-16 08:47:16 +03:00
tests/server/sockfilt.c: Set Windows Console to binary mode
This commit is contained in:
parent
a77d18efaf
commit
5475ac279d
1 changed files with 4 additions and 0 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue