Line break happens randomly with receving files by winscp.
I have checked that the source file in sftp server is ok(have out line break).
How it happens?
there are some logs below:
2014-07-14 12:53:11.829 Script: get -delete /cust/ctcai/out/ZPDU/*.txt E:\Interface\dcssftp\out\ZPDU\
. 2014-07-14 12:53:11.829 Listing directory "/cust/ctcai/out/ZPDU".
> 2014-07-14 12:53:11.829 Type: SSH_FXP_OPENDIR, Size: 29, Number: 21003
< 2014-07-14 12:53:11.907 Type: SSH_FXP_HANDLE, Size: 13, Number: 21003
> 2014-07-14 12:53:11.907 Type: SSH_FXP_READDIR, Size: 13, Number: 21260
< 2014-07-14 12:53:12.000 Type: SSH_FXP_NAME, Size: 457, Number: 21260
> 2014-07-14 12:53:12.000 Type: SSH_FXP_READDIR, Size: 13, Number: 21516
< 2014-07-14 12:53:12.078 Type: SSH_FXP_STATUS, Size: 28, Number: 21516
< 2014-07-14 12:53:12.078 Status code: 1
> 2014-07-14 12:53:12.078 Type: SSH_FXP_CLOSE, Size: 13, Number: 21764
. 2014-07-14 12:53:12.078 .;d;256;2014-07-14T04:48:35.000Z;"ctcai" [221];"staff" [1];rwxr-xr-x;2
. 2014-07-14 12:53:12.078 ..;d;4096;2014-04-11T02:17:01.000Z;"ctcai" [221];"staff" [1];rwxr-xr-x;0
. 2014-07-14 12:53:12.078 Archive;d;12288;2014-07-12T01:30:21.000Z;"ctcai" [221];"staff" [1];rwxr-xr-x;0
. 2014-07-14 12:53:12.078 INZPDU201407141253.txt;-;70840;2014-07-14T04:53:06.000Z;"ctcai" [221];"staff" [1];rw-r--r--;0
. 2014-07-14 12:53:12.078 File: "/cust/ctcai/out/ZPDU/INZPDU201407141253.txt"
. 2014-07-14 12:53:12.078 Copying "/cust/ctcai/out/ZPDU/INZPDU201407141253.txt" to local directory started.
. 2014-07-14 12:53:12.078 Ascii transfer mode selected.
. 2014-07-14 12:53:12.078 Opening remote file.
> 2014-07-14 12:53:12.078 Type: SSH_FXP_OPEN, Size: 60, Number: 22019
< 2014-07-14 12:53:12.156 Type: SSH_FXP_STATUS, Size: 24, Number: 21764
. 2014-07-14 12:53:12.156 Discarding reserved response
< 2014-07-14 12:53:12.234 Type: SSH_FXP_HANDLE, Size: 13, Number: 22019
> 2014-07-14 12:53:12.234 Type: SSH_FXP_FSTAT, Size: 13, Number: 22280
< 2014-07-14 12:53:12.312 Type: SSH_FXP_ATTRS, Size: 37, Number: 22280
> 2014-07-14 12:53:12.312 Type: SSH_FXP_READ, Size: 25, Number: 22533
< 2014-07-14 12:53:13.342 Status code: 1
. 2014-07-14 12:53:13.342 22 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2014-07-14 12:53:13.342 Type: SSH_FXP_CLOSE, Size: 13, Number: 25860
< 2014-07-14 12:53:13.342 Type: SSH_FXP_STATUS, Size: 28, Number: 25093
< 2014-07-14 12:53:13.420 Type: SSH_FXP_STATUS, Size: 28, Number: 25349
< 2014-07-14 12:53:13.810 Type: SSH_FXP_STATUS, Size: 28, Number: 25605
. 2014-07-14 12:53:13.810 Preserving timestamp [2014-07-14T04:53:06.000Z]
. 2014-07-14 12:53:13.810 Deleting file "/cust/ctcai/out/ZPDU/INZPDU201407141253.txt".
> 2014-07-14 12:53:13.810 Type: SSH_FXP_REMOVE, Size: 52, Number: 26125
< 2014-07-14 12:53:13.810 Type: SSH_FXP_STATUS, Size: 24, Number: 25860
. 2014-07-14 12:53:13.810 Discarding reserved response
< 2014-07-14 12:53:13.935 Type: SSH_FXP_STATUS, Size: 24, Number: 26125
< 2014-07-14 12:53:13.935 Status code: 0