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: ange-ftp using binary mode Date: Fri, 10 Feb 2012 16:55:49 -0500 Message-ID: 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 1328910972 17016 80.91.229.3 (10 Feb 2012 21:56:12 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 10 Feb 2012 21:56:12 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 10 22:56:12 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 1RvyRu-0003KW-3f for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Feb 2012 22:56:10 +0100 Original-Received: from localhost ([::1]:53900 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvyRt-00052s-Na for geh-help-gnu-emacs@m.gmane.org; Fri, 10 Feb 2012 16:56:09 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:45035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvyRo-00052c-GI for help-gnu-emacs@gnu.org; Fri, 10 Feb 2012 16:56:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RvyRn-0005U4-6b for help-gnu-emacs@gnu.org; Fri, 10 Feb 2012 16:56:04 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:36106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RvyRn-0005Tl-1W for help-gnu-emacs@gnu.org; Fri, 10 Feb 2012 16:56:03 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RvyRj-0003En-Nb for help-gnu-emacs@gnu.org; Fri, 10 Feb 2012 22:55:59 +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 ; Fri, 10 Feb 2012 22:55:59 +0100 Original-Received: from kgold by yktgi01e0-s5.watson.ibm.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 10 Feb 2012 22:55:59 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 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) Gecko/20120129 Thunderbird/10.0 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:83684 Archived-At: 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. Here's a trace. quote mdtm /SYSTEM/home/suimgvb/ken/utils.cpp 501 command aborted -- FTP server not configured for MDTM type binary 200 Representation type is Image get /SYSTEM/home/suimgvb/ken/utils.cpp c:/DOCUME~1/ADMINI~1/LOCALS~1/Temp/ange-ftp4280SMK 200 Port request OK. 125 Sending data set /SYSTEM/home/suimgvb/ken/utils.cpp 250 Transfer completed successfully. ftp: 1407 bytes received in 0.01Seconds 93.80Kbytes/sec. type ascii 200 Representation type is Ascii NonPrint quote mdtm /SYSTEM/home/suimgvb/ken/utils.cpp 501 command aborted -- FTP server not configured for MDTM