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 14:59:43 -0500 Message-ID: References: <87zkclttaa.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 1329336014 6188 80.91.229.3 (15 Feb 2012 20:00:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Feb 2012 20:00:14 +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 21:00:11 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 1Rxl1M-00047z-13 for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Feb 2012 21:00:08 +0100 Original-Received: from localhost ([::1]:56601 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rxl1H-000588-Ux for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Feb 2012 15:00:03 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:45217) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rxl1B-00057u-KE for help-gnu-emacs@gnu.org; Wed, 15 Feb 2012 14:59:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rxl1A-0002Ju-J6 for help-gnu-emacs@gnu.org; Wed, 15 Feb 2012 14:59:57 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:49427) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rxl1A-0002Je-CB for help-gnu-emacs@gnu.org; Wed, 15 Feb 2012 14:59:56 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rxl17-0003wW-Bv for help-gnu-emacs@gnu.org; Wed, 15 Feb 2012 20:59:53 +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 20:59:53 +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 20:59:53 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 48 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: <87zkclttaa.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:83761 Archived-At: On 2/14/2012 8:54 AM, Michael Albinus wrote: > Ken Goldman writes: > >> 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? >> >> I set ange-ftp-binary-file-name-regexp to "", even though the .cpp >> file wasn't in the regexp. > > `ange-ftp-binary-file-name-regexp' tells, which files are to be > transferred in binary mode. "" matches ALL files. So you must set it to > a regexp, which doesn't match any file name, like "^$" (which is the > empty file name). I tried this, but it still transfers in binary. ~~~~~~~~ ange-ftp-binary-file-name-regexp is a variable defined in `ange-ftp.el'. Its value is "^$" ~~~~~~~~~~ ftp trace: ~~~~~~~~~~ quote mdtm /SYSTEM/home/suimgvb/ken/client.cpp 501 command aborted -- FTP server not configured for MDTM type binary 200 Representation type is Image get /SYSTEM/home/suimgvb/ken/client.cpp c:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ange-ftp5768MyT 200 Port request OK. 125 Sending data set /SYSTEM/home/suimgvb/ken/client.cpp 250 Transfer completed successfully. ftp: 38381 bytes received in 0.08Seconds 485.84Kbytes/sec. type ascii 200 Representation type is Ascii NonPrint quote mdtm /SYSTEM/home/suimgvb/ken/client.cpp 501 command aborted -- FTP server not configured for MDTM