Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsLine endings
https://www.eclipse.org/forums/index.php/mv/msg/492782/1071455/#msg_1071455
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.)]]>Christine VACHER2013-07-20T06:11:56-00:00Re: Line endings
https://www.eclipse.org/forums/index.php/mv/msg/492782/1072847/#msg_1072847
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
]]>David McKnight2013-07-23T16:26:24-00:00