Menu

#545 cURL under Windows stops reading data from stdin on ^Z

closed-fixed
ftp (93)
5
2013-06-21
2005-10-25
Anonymous
No

Under Windows 2000, when sending through FTP data read
by cURL from stdin (curl -T - ftp://hostname.domain <
filename), transfer stops after the first occurence of
0x1A in input stream. Under Linux (Fedora Core 3),
everything is send as expected.
Curl versions:
under Windows: 7.15.0 only (all builds available from
download page at curl.haxx.se, except Cygwin builds,
and one compiled locally from sources under MSYS/MinGW);
under Linux: curl 7.12.3 (i386-redhat-linux-gnu)
libcurl/7.12.3 OpenSSL/0.9.7a zlib/1.2.1.2 libidn/0.5.6
No other tools I use, which are ports from unix,
exhibit such behaviour ("cat < infile > outfile" makes
exact copy of the very file cURL has trouble with).
I believe the problem is with reading data, not
transferring, as the total size reported by cURL in the
progress display is the size of data up to first 0x1A,
not the whole file.

tommink[at]post.pl

Discussion

  • Daniel Stenberg

    Daniel Stenberg - 2005-10-25

    Logged In: YES
    user_id=1110

    Is perhaps ctrl-Z considered end-of-file on windows when
    reading from stdin if it isn't set to binary mode or
    something like that?

     
  • Daniel Stenberg

    Daniel Stenberg - 2005-10-27
    • status: open --> closed
     
  • Daniel Stenberg

    Daniel Stenberg - 2005-10-27
    • status: closed --> closed-fixed
     
  • Daniel Stenberg

    Daniel Stenberg - 2005-10-27

    Logged In: YES
    user_id=1110

    Fix committed to CVS just now.

    Thanks for reporting!