From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.help Subject: Re: ange-ftp using binary mode Date: Thu, 16 Feb 2012 11:42:24 +0100 Message-ID: <874nur9i0f.fsf@gmx.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329388990 31879 80.91.229.3 (16 Feb 2012 10:43:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Feb 2012 10:43:10 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Ken Goldman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 16 11:43:06 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 1Rxyni-0000sF-Nw for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Feb 2012 11:42:58 +0100 Original-Received: from localhost ([::1]:46857 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rxynh-0007j3-3l for geh-help-gnu-emacs@m.gmane.org; Thu, 16 Feb 2012 05:42:57 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:59483) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxynY-0007gb-16 for help-gnu-emacs@gnu.org; Thu, 16 Feb 2012 05:42:53 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RxynQ-0007v5-Qm for help-gnu-emacs@gnu.org; Thu, 16 Feb 2012 05:42:47 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:40258) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RxynQ-0007uo-CK for help-gnu-emacs@gnu.org; Thu, 16 Feb 2012 05:42:40 -0500 Original-Received: (qmail invoked by alias); 16 Feb 2012 10:42:37 -0000 Original-Received: from p57BB96C0.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.150.192] by mail.gmx.net (mp036) with SMTP; 16 Feb 2012 11:42:37 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1919eFN4CN1FYZXa9MJKXGVYTnBvDQAp6ZnZ2Uh5x V8upIS3XJIoH2g In-Reply-To: (Ken Goldman's message of "Wed, 15 Feb 2012 16:30:16 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.93 (gnu/linux) X-Y-GMX-Trusted: 0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 213.165.64.22 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:83773 Archived-At: Ken Goldman 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 . 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. Best regards, Michael.