Why TC add empty line to files on FTP download?

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
kjubus
Junior Member
Junior Member
Posts: 3
Joined: 2013-03-25, 08:51 UTC

Why TC add empty line to files on FTP download?

Post by *kjubus »

i have a strange issue with TC (7.56a). when i download a file from server at work, it adds empty lines to the file (it's a text file, but not always with TXT extension). in the end of file, in the middle - i can't really tell why. I tried to remove all my personal settings - didn't help. I tried to copy a working TC from my co-worker - didn't help. I tried to look for it on the internet - i couldn't find anything on that. what can be a problem?

I use a Total Commander 7.56a 32-bit, windows 7 ultimate with SP1, 64-bit.
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3897
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

Just a guess: You are using FTP to download the file ...

For FTP you can choose the transfermode right after you connection is established.
Using "Automatic" or "Text" will convert the end of line of text-type files. CrLf <=> LF
Using "Binary" will leave the file untouched.
#5767 Personal license
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50929
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Are they UTF-16 Unicode files? If yes, transfer mode "text" will not do these files any good. Also when the file was uploaded in binary mode (Windows line breaks) and is then downloaded in text mode, you will get two and a half line breaks. Btw, this is done by the server side when choosing text transfer mode, not by TC.
Author of Total Commander
https://www.ghisler.com
kjubus
Junior Member
Junior Member
Posts: 3
Joined: 2013-03-25, 08:51 UTC

Post by *kjubus »

i was using the BINARY setting all the time, so that (probably) isn't it. any other ideas?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50929
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Binary mode shouldn't change the files. Maybe you aren't using FTP? are you using a plugin like WebDAV?
Author of Total Commander
https://www.ghisler.com
kjubus
Junior Member
Junior Member
Posts: 3
Joined: 2013-03-25, 08:51 UTC

Post by *kjubus »

it's an ftp for sure. i can see, that it shows me "ftp//MYUSERNAME@SERVERNAME". I don't have any plugins or addons as well
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50929
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Can you post a log file of the ftp connection when the error happens, please? Maybe there is an error from the server. You can enable FTP logging in Configuration - Options - FTP. Thanks.
Author of Total Commander
https://www.ghisler.com
Post Reply