curl-library
[PATCH] tool_operate: set stdin to binary and fix telnet test 1326 on Windows
From: Marc Hoersken <info_at_marc-hoersken.de>
Date: Sat, 5 Apr 2014 21:51:39 +0200
Date: Sat, 5 Apr 2014 21:51:39 +0200
--- src/tool_operate.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tool_operate.c b/src/tool_operate.c index 99ec59a..9ade04d 100644 --- a/src/tool_operate.c +++ b/src/tool_operate.c @@ -726,6 +726,10 @@ static CURLcode operate_do(struct GlobalConfig *global, "fcntl failed on fd=%d: %s\n", infd, strerror(errno)); } } + else { + /* set stdin to binmode for protocols like telnet */ + set_binmode(stdin); + } if(uploadfile && config->resume_from_current) config->resume_from = -1; /* -1 will then force get-it-yourself */ -- 1.8.1.msysgit.1 --------------040702060202070207010307 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------- List admin: http://cool.haxx.se/list/listinfo/curl-library Etiquette: http://curl.haxx.se/mail/etiquette.html --------------040702060202070207010307--Received on 2001-09-17