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: Thu, 23 Feb 2012 14:59:41 -0500 Message-ID: References: <874nur9i0f.fsf@gmx.de> 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 1330027223 21737 80.91.229.3 (23 Feb 2012 20:00:23 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 23 Feb 2012 20:00:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 23 21:00:19 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 1S0epr-0000LS-AK for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Feb 2012 21:00:15 +0100 Original-Received: from localhost ([::1]:58177 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0epo-000575-Ow for geh-help-gnu-emacs@m.gmane.org; Thu, 23 Feb 2012 15:00:12 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:60982) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0epd-00052h-SQ for help-gnu-emacs@gnu.org; Thu, 23 Feb 2012 15:00:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0epb-00049U-Qo for help-gnu-emacs@gnu.org; Thu, 23 Feb 2012 15:00:01 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:44067) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0epb-00049M-KJ for help-gnu-emacs@gnu.org; Thu, 23 Feb 2012 14:59:59 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1S0epY-000089-Ci for help-gnu-emacs@gnu.org; Thu, 23 Feb 2012 20:59:56 +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 ; Thu, 23 Feb 2012 20:59:56 +0100 Original-Received: from kgold by yktgi01e0-s5.watson.ibm.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 23 Feb 2012 20:59:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 36 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.2) Gecko/20120216 Thunderbird/10.0.2 In-Reply-To: <874nur9i0f.fsf@gmx.de> 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:83847 Archived-At: On 2/16/2012 5:42 AM, Michael Albinus wrote: > 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. 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.