From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Goldman Newsgroups: gmane.emacs.help Subject: Re: ange-ftp using binary mode Date: Wed, 15 Feb 2012 16:30:16 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1329341721 18371 80.91.229.3 (15 Feb 2012 21:35:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Feb 2012 21:35:21 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 15 22:35:20 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RxmVR-0002Ef-GR for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Feb 2012 22:35:17 +0100 Original-Received: from localhost ([::1]:45353 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxmVQ-0001Q1-9P for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Feb 2012 16:35:16 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:57120) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxmVK-0001O4-1K for help-gnu-emacs@gnu.org; Wed, 15 Feb 2012 16:35:11 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RxmVI-0006td-J4 for help-gnu-emacs@gnu.org; Wed, 15 Feb 2012 16:35:10 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:55466) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxmVI-0006tP-Cv for help-gnu-emacs@gnu.org; Wed, 15 Feb 2012 16:35:08 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RxmVE-00025U-0K for help-gnu-emacs@gnu.org; Wed, 15 Feb 2012 22:35:04 +0100 Original-Received: from yktgi01e0-s5.watson.ibm.com ([129.34.20.19]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Feb 2012 22:35:03 +0100 Original-Received: from kgold by yktgi01e0-s5.watson.ibm.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 15 Feb 2012 22:35:03 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 19 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: yktgi01e0-s5.watson.ibm.com User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1 In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:83769 Archived-At: 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?