Topic "Binary transfer not working when remotely editing"

Author Message
[View user's profile]

Joined: 2016-01-08
Posts: 1
This seems like a bug.

I have a SCP session (from Windows host to Linux server) with Binary transfer mode.
The transfers work as expected, (my text files are copied from Linux to my Windows with UNIX newlines).
But when I try to remotely edit a remote file, the file is always opened with DOS newlines, as if were
transfered in Text mode. I can verify that by peeking into the temporary file in (say)

This happens no matter what is the selected editor (internal or external). It happens with SCP and SFTP.

I'm using WINSCP 5.1.8 (Build 3799), Win-7 64bits.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
A file is always transferred in the text mode to the internal editor as it supports Windows line endings only.

For external editors, the text mode is used only if Force text transfer mode for files edited in external editor editor option is selected (what if off by default in the latest versions):

You need to upgrade in any case.

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License