0
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?
The side effect of this hack is a missing line feed at EOF resulting in the following error if viewed in vim: [Incomplete last line] – denormalizer – 2011-06-17T02:17:33.437
This issue has now been confirmed with the author of the eclipse sftp plugin. ymnk: "If we have an opportunity to enhance that plug-in, that functionality may be hacked." – denormalizer – 2011-06-22T01:21:14.790