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: Tue, 14 Feb 2012 14:54:05 +0100 Message-ID: <87zkclttaa.fsf@gmx.de> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1329227683 18095 80.91.229.3 (14 Feb 2012 13:54:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 14 Feb 2012 13:54:43 +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 Tue Feb 14 14:54:40 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 1RxIq8-0007DX-Cb for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Feb 2012 14:54:40 +0100 Original-Received: from localhost ([::1]:55606 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxIq4-0005gm-SN for geh-help-gnu-emacs@m.gmane.org; Tue, 14 Feb 2012 08:54:36 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:40827) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxIpw-0005gL-8a for help-gnu-emacs@gnu.org; Tue, 14 Feb 2012 08:54:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RxIpn-00056M-Le for help-gnu-emacs@gnu.org; Tue, 14 Feb 2012 08:54:28 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.23]:33988) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1RxIpn-00055u-9t for help-gnu-emacs@gnu.org; Tue, 14 Feb 2012 08:54:19 -0500 Original-Received: (qmail invoked by alias); 14 Feb 2012 13:54:16 -0000 Original-Received: from p57BB9624.dip0.t-ipconnect.de (EHLO detlef.gmx.de) [87.187.150.36] by mail.gmx.net (mp027) with SMTP; 14 Feb 2012 14:54:16 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+/oJQpBzu/HIgUOq3TL9l7Zd/ktYsswPMUZL8CkO HsQsIwVF0S9yRK In-Reply-To: (Ken Goldman's message of "Fri, 10 Feb 2012 16:55:49 -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.23 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:83748 Archived-At: 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). Best regards, Michael.