Subject: | Problem with cr/lf translation |
Hi,
I have found a bug with the cr/lf translation. I am running perl in cygwin environment und win2000. If I transfer a file which has already cr/lf this will be sometimes translated to cr/cr/lf. This happens allways at the border of a transfer block, the last byte of the block is cr and the first byte of the next block lf, wich will be translated to cr/lf. I have seen in the changelog that this problem should be already fixed, but it isn't. The change was made to Net::FTP::cmd->datasend but this routine wouldn't used for sending data(?!). The problem is in Net::FTP::A->write. To fix this problem I have added the following line
Show quoted text
>>chop $tmp if substr($tmp, -1) eq "\015";<< after the line with the cr/lf translation. For now its looks OK. But I am a perl beginner and know not much about ftp internals.
Greetings
Egon