Opened 21 years ago

Last modified 17 years ago

#1969 closed Feature request

Unix / Windows Line Endings Choice

Reported by: anonymous Owned by: Alexander Schuch
Priority: normal Component: FileZilla Client
Keywords: Cc: Alexander Schuch
Component version: Operating system type:
Operating system version:

Description

Is it possible to have as options on Upload and
(seperately) Download of an ASCII text file (eg .html)
the Choice* between using

(a) Unix Line endings LF
or
(b) Windows Line Endings CR LF

Using FileZilla 2.2.1b on a Windows Me PC client, it
appears FileZilla uses exclusively LF for upload (strips CR)
and download.
The Server (unix or windows) ought not care which line
endings are used; browsers know CR, CR LF, and LF are
equivalent for rendering purposes - the advantage to
using the same line endings on both client and server is
(1)At a glance comparision between ASCII file byte
counts on upload or download - good confidence test
etc
and
(2)Windows needs the CR for editing purposes if you
download a text file - (unless one wants to look at
the "black square" phenonmenon in Notepad etc.)

Thank you

  • Actually there are 3 possibilities - the last being the

Mac CR

Binary mode automatically preserves byte count

Change History (1)

comment:1 by Alexander Schuch, 17 years ago

Can you please read the explanation at <http://filezilla-project.org/wiki/index.php/Data_Type> about how ASCII mode is supposed to work?

In your case, it seems as if the FTP server you are uploading to is a Unix server or emulates a Unix server, thus you get LF-only line endings. If you want to avoid all the troubles, just use your favorite editor and convert all files to LF-only or CRLF line endings, and then upload and download them as binary.

Note: See TracTickets for help on using tickets.