[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ange-ftp using binary mode
From: |
Michael Albinus |
Subject: |
Re: ange-ftp using binary mode |
Date: |
Tue, 14 Feb 2012 14:54:05 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) |
Ken Goldman <kgold@watson.ibm.com> writes:
> I have to use ange-ftp because the server I'm connecting to doesn't
> run ssh. When I transfer, it uses binary, which does not work. The
> server is a mainframe and likely uses ebcdic.
>
> If I ftp from the command line in ascii mode, the file comes over to
> Windows correctly. If I enter the commands by hand in the ange-ftp,
> setting ascii, it works.
>
> How do I tell ange-ftp to use ascii?
>
> I set ange-ftp-binary-file-name-regexp to "", even though the .cpp
> file wasn't in the regexp.
`ange-ftp-binary-file-name-regexp' tells, which files are to be
transferred in binary mode. "" matches ALL files. So you must set it to
a regexp, which doesn't match any file name, like "^$" (which is the
empty file name).
Best regards, Michael.