Topic "carriage return added to data after gzip is used to zip a file back that was winscp3 to a unix server"

Author Message
diane lupinski
[View user's profile]

Joined: 2004-08-06
Posts: 5
Unix received a file that was zipped using winzip. The file was transfered to another unix box in binary mode using winscp3. The file was than unzipped and it looked fine. We used unix gzip to zip it back and then looked at the data and each record contains a carriage return hex'0D' at the end.

The file was treated the same way with ftp transfer on Unix and the carriage returns are not there.

Does anyone know what I could be doing wrong?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
You are probably using text/ascii mode transfer. Make sure you select "binary" mode in transfer options.
_________________
Martin Prikryl
diane lupinski
[View user's profile]

Joined: 2004-08-06
Posts: 5
prikryl wrote:
You are probably using text/ascii mode transfer. Make sure you select "binary" mode in transfer options.


It says that the mode is binary while copying the data .
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
diane lupinski wrote:
It says that the mode is binary while copying the data .

I apologise I was not reading your first post carefully.

If I understand now, the file was transfered correctly. The problem appeared after zipping the correct file back. OK? So it does not seem to be WinSCP problem, I believe.

Anyway, I do not have any hint for you, unless I still do not understand.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License