Hello all,

I use jcraft sftp in eclipse to upload local changes to my development server.

I’ve noticed (for a while now) that it automatically adds a windows carriage 
return to my php files.

To ensure that my local copy is carriage return free I have done the following:

* I fromdos all local files
* I’ve set “New text file line delimiter” to Unix
* I’ve set subversion eol for php files to LF: *.php = svn:eol-style=LF

But it still did not fix the issue.

The only workaround I’ve found (which is usable but not entirely satisfactory) 
is if I add the following:

/Preferences/Team/File Content/
* Name/Extension: *.php
* Content: Binary

Any reason why jsch (i assume this is the underlying code responsible) adds the 
carriage return?

Local: Ubuntu 10.0.4
Remote: Debian 2.6.29

The question I’ve posted on superuser.com:

http://superuser.com/questions/234527/how-to-fix-windows-new-line-character-on-sftp-synchronization-in-eclipse-pdt

Thanks
------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to