Description
New lines in files sent in ASCII mode are transformed into /r/n no matter what platform the ftp server is running on. But if I'm not wrong, the new EOL should be equal to "line.separator" . If ASCII mode is going to be supported, this ought to be changed.
The code in IODataConnection.transfer()
{
if (isAscii) {
for (int i = 0; i < count; ++i) {
byte b = buff[i];
if (b == '\n' && !lastWasCR)
if (b == '\r')
{ lastWasCR = true; }else
{ lastWasCR = false; } bos.write(b);
}
}
}