We use edtFTP java api which runs on Linux to upload windows files (windows folder is mounted on linux) to mainframe ftp server. The source files have \r\n at the end of each line as it is windows format file. But our application (ftp client) runs on linux, therefore the line.separator='\n'. When the file is uploaded to mainframe with Fixed Block (FB), we observe a carriage return which upsets mainfram application, as it does not expect extra carriage return.
I wonder if anybody has similar problem like this. After we modified the code in FTPClient.java to remove the carriage return in putData(), then it is OK.
Is this a defect?
Thanks.
Richard