This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: ftp client corrupts binary files with ^m ??
- To: Andrew Thompson <andrew at waitaki dot otago dot ac dot nz>
- Subject: Re: ftp client corrupts binary files with ^m ??
- From: Guido Roeskens <groeskens at bluewin dot ch>
- Date: Wed, 05 Aug 1998 12:39:44 +0200
- CC: gnu-win32 at cygnus dot com
- References: <Pine.LNX.3.95.980805013441.6371C-100000@waitaki.otago.ac.nz>
Andrew Thompson wrote:
> I have ftp.exe installed on my system. When I get text files from other
> servers ftp works OK but when I set ftp to 'bin' and get a binary file the
> file comes out a little larger and (I Think) it has ^m's inserted into the
> binary code, hence it does not run.
>
> Do I need to mount everyting as "text=bin" on my system currently
> everyting is text=!bin??
>
> I do not understand how this system translates text files from unix type
> to dos type.
>
> Andrew Thompson
When ftp starts up it is in text (ascii) mode which does EOL
conversion("End-of Line" gets converted from 'LF' on Unix to 'CRLF' on DOS)
You have to change the transfer type to binary mode: Simply type "bin" as an
abbreviation for "binary". You can check the transfer type set with "type" or
with "status".
BTW: For help with ftp type "help" or "help <command>"Guido
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".