Ken Goldman<kgold@watson.ibm.com> writes:
On 2/10/2012 4:55 PM, Ken Goldman wrote:
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?
Following up my own post, I edited ange-ftp.el and changed 'binary' to
ascii'. Files now come across absolutely perfectly.
I know that's an awful hack, but it's a proof of concept. Now, how do
I convince ange-ftp to use ascii without editing the elisp source?
Which Emacs version are you running?
Last year, there was a bug report about ange-ftp's binary mode, see
<http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7383>. IIRC, it was about
ange-ftp always using binary mode, when your local system is MS
Windows. This is fixed meanwhile.
Chances are good, that a prerelease of Emacs 24.1 works for you out-of-the-box.