From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: ange-ftp using binary mode Date: Sat, 11 Feb 2012 09:01:12 +0200 Message-ID: <838vk926rr.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org X-Trace: dough.gmane.org 1328943713 1728 80.91.229.3 (11 Feb 2012 07:01:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 11 Feb 2012 07:01:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Feb 11 08:01:52 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 1Rw6xv-0004VK-UU for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Feb 2012 08:01:48 +0100 Original-Received: from localhost ([::1]:38962 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rw6xv-0005kr-5d for geh-help-gnu-emacs@m.gmane.org; Sat, 11 Feb 2012 02:01:47 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:58332) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rw6xp-0005it-J5 for help-gnu-emacs@gnu.org; Sat, 11 Feb 2012 02:01:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rw6xo-0000lP-Cn for help-gnu-emacs@gnu.org; Sat, 11 Feb 2012 02:01:41 -0500 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:49791) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rw6xo-0000lJ-6R for help-gnu-emacs@gnu.org; Sat, 11 Feb 2012 02:01:40 -0500 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0LZ700M00VHSE600@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Sat, 11 Feb 2012 09:01:12 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.150.51]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LZ700M8AVHZ0070@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Sat, 11 Feb 2012 09:01:12 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.166 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:83694 Archived-At: > From: Ken Goldman > Date: Fri, 10 Feb 2012 16:55:49 -0500 > > 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. Are you using ange-ftp via "C-x C-f"? If so, tell Emacs to decode the file, as in "C-x RET c ebcdic-us RET C-x C-f whatever RET". If you use some other command, again prefix that command with universal-coding-system-argument ("C-x RET c") to tell it to use EBCDIC, or whatever is right for those files. IOW, just imagine the file was on your local disk, and do the same. You cannot tell disk I/O to "use ascii", can you?