How to fix windows new line character on sftp synchronization in eclipse (pdt)
Posted
by
superspace
on Super User
See other posts from Super User
or by superspace
Published on 2011-01-18T00:40:49Z
Indexed on
2011/01/18
0:55 UTC
Read the original article
Hit count: 227
Hello,
I have a problem with windows new line characters being introduced into text files on eclipse sftp synchronization (via jcraft's sftp plugin).
I've set "New text file line delimiter" to Unix and have even sanitized the file with "fromdos" but every time i upload using the sftp plugin, windows new line characters can be seen in the remote file as "^M" characters (when viewed in vi).
A point to note is that if i upload using an external sftp client, it's all fine.
Eclipse Version: PDT (Helios) SFTP: jcraft sftp plugin Local Environment: Ubuntu 10.04 Remote Environments: FreeBSD 6.4, Debian 4.0
What am i missing?
My co-workers would thank you for the solution :)
Thanks in advance.
© Super User or respective owner