Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: SFTP

dandv wrote:

martin wrote:

Are you editing local files or what?


Yes, for example before transferring them.

Would be worth mentioning that initialy.
Well you are editing file on Windows, so WinSCP uses CRLF.
dandv

Re: SFTP

martin wrote:

Are you editing local files or what?


Yes, for example before transferring them.
martin

Re: SFTP

dandv wrote:

The server protocol is SFTP with "Allow SCP fallback", but no transfer is ever taking place.

Are you editing local files or what?
dandv

SFTP

The server protocol is SFTP with "Allow SCP fallback", but no transfer is ever taking place.
martin

Re: Same bug in 4.1.8 - editor saves CRLF no matter what

dandv wrote:

I'm encountering the same bug in 4.1.8. The internal editor will save the newlines in a file as CRLFs, no matter what. This does not involve any transfers. Simply edit a LF-separated file with the built-in editor, then save it. Notice that the linbreaks have been converted to CR/LF.

It does not matter, but I had the end-of-line characters set to "LF" in my Server Environment preferences.

What protocol?
dandv

Same bug in 4.1.8 - editor saves CRLF no matter what

I'm encountering the same bug in 4.1.8. The internal editor will save the newlines in a file as CRLFs, no matter what. This does not involve any transfers. Simply edit a LF-separated file with the built-in editor, then save it. Notice that the linbreaks have been converted to CR/LF.

It does not matter, but I had the end-of-line characters set to "LF" in my Server Environment preferences.
martin

Re: Editor in .1.7 changes files from unix format to dos format

You may have changed default transfer mode in WinSCP.
thedobc

Re: Editor in .1.7 changes files from unix format to dos format

martin wrote:

Only if you configure it to do so.

Sorry. I meant 4.1.7
I can't find where this is configured. I looked at every option I can see.

Never mind. I see in the docs;


The internal editor supports only Windows-format text files.


So I guess I will need to configure an external editor. But I don't remember having this problem until recently. I have been using WinSCP since the early 3.xx versions.
martin

Re: Editor in 3.1.7 changes files from unix format to dos format

Only if you configure it to do so.
thedobc

Editor in 3.1.7 changes files from unix format to dos format

Editor in 3.1.7 changes edited files from unix LF's to dos CR/LF.

After editing files you have to run dos2unix on them