cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Broken libcurl FTP list parsing

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 20 Jan 2014 11:21:51 +0100 (CET)

On Sun, 19 Jan 2014, Marc Hörsken wrote:

> Comparing the output of test 100 and 101 it seems like curl does not do the
> right thing. The directory listing output of test 100 contains [LF] while
> test 101 results in [CR][LF]. I think that the later one is actually correct
> on Windows, but please correct me if I am wrong.

Yes, I wouldn't be surprised. A directory listing is done in text mode with
FTP so I'd say CRLF line endings would be expected on Windows and LF
elsewhere.

This is probably part of the known bug #21, "FTP ASCII transfers do not follow
RFC959".

-- 
  / daniel.haxx.se

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2014-01-20