How can I stop Filezilla changing my linebreaks?

前端 未结 4 1287
Happy的楠姐
Happy的楠姐 2020-11-27 15:00

I\'m downloading a perl CGI file from a Linux web server.

It has Unix linebreaks. I edit it on a Windows PC with a decent text-editor (Geany) which preserves those l

相关标签:
4条回答
  • 2020-11-27 15:53

    The actual problem was with Filezilla FTP client default transfer mode, by default it is "Auto". Follow below step to convert it into "binary".

    Go to the "Edit | Settings… "

    In the new window, go to "transfers | File Types " and in "Default transfer type", select "Binary".

    0 讨论(0)
  • 2020-11-27 15:54

    The developers of FileZilla appear to have a pretty exclusive opinion on how unknown files should be transferred by default.

    The bug report dwells since 2008. Of course, it may help if more people jump in and request a fix for this flaw.

    0 讨论(0)
  • 2020-11-27 15:55

    What FTP transfer mode do you use (binary or ASCII?)? I'm not 100% sure, but I think if you force binary mode you should not have this problem.

    0 讨论(0)
  • 2020-11-27 16:03

    In FileZilla 2.2.32, go Edit > Settings > File transfer settings > ASCII/Binary. Set it to always binary: that should do the trick.

    In FileZilla 3.5.0 the setting is in Edit > Settings > Transfers > File Types > Default transfer type > Binary.

    0 讨论(0)
提交回复
热议问题