Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Target Management » Line endings(windows CRLF & Linix LF)
Line endings [message #1071455] Sat, 20 July 2013 02:11 Go to next message
Christine VACHER is currently offline Christine VACHER
Messages: 1
Registered: July 2013
Junior Member
I deploy php files to a Linux server from a Windows box. I have a SFTP connection to that server. I wish line endings would be converted when copying files.

I have set *.php as "Text" in Remote Systems>Files>File types.
I have even set "Text" as the Default File Transfer Mode.

Even then, php files copied to Linux still have their lines ending whith ^M. (And that causes some bugs.)
Re: Line endings [message #1072847 is a reply to message #1071455] Tue, 23 July 2013 12:26 Go to previous message
David McKnight is currently offline David McKnight
Messages: 244
Registered: July 2009
Senior Member
Christine VACHER wrote on Sat, 20 July 2013 02:11
I deploy php files to a Linux server from a Windows box. I have a SFTP connection to that server. I wish line endings would be converted when copying files.

I have set *.php as "Text" in Remote Systems>Files>File types.
I have even set "Text" as the Default File Transfer Mode.

Even then, php files copied to Linux still have their lines ending whith ^M. (And that causes some bugs.)


Hi Christine,

I believe the RSE Sftp service always transfers files in binary mode. What you may want to do is go to Preferences->General->Workspace and change the text file line delimiter to be "Unix".

Hope that helps,
Dave
Previous Topic:Connect to USS on z/os (zSeries)
Next Topic:Using an alternate ssh version
Goto Forum:
  


Current Time: Thu Apr 24 11:33:03 EDT 2014

Powered by FUDForum. Page generated in 0.01670 seconds