help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ange-ftp using binary mode


From: Ken Goldman
Subject: Re: ange-ftp using binary mode
Date: Thu, 23 Feb 2012 14:59:41 -0500
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.2) Gecko/20120216 Thunderbird/10.0.2

On 2/16/2012 5:42 AM, Michael Albinus wrote:
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.

I looked at the bug reports, but they seem to be cases where people __wanted__ binary mode. I have the opposite issue. I always want ASCII mode so ftp will do the EBCDIC <-> ASCII conversion.

I'm running 23.1.1. I won't risk a pre-release when I have a source code hack that works. I'll retest when 24 goes into production.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]