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 15:17:26 -0500 Message-ID: References: <838vk926rr.fsf@gnu.org> 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 1329337075 14663 80.91.229.3 (15 Feb 2012 20:17:55 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 15 Feb 2012 20:17:55 +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:17:54 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 1RxlIX-0002yN-0N for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Feb 2012 21:17:53 +0100 Original-Received: from localhost ([::1]:42342 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxlIW-0000v9-6t for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Feb 2012 15:17:52 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:41337) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxlIN-0000ul-KU for help-gnu-emacs@gnu.org; Wed, 15 Feb 2012 15:17:47 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RxlIM-0007Im-MB for help-gnu-emacs@gnu.org; Wed, 15 Feb 2012 15:17:43 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:35635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RxlIM-0007IU-Fp for help-gnu-emacs@gnu.org; Wed, 15 Feb 2012 15:17:42 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1RxlIL-0002nf-7i for help-gnu-emacs@gnu.org; Wed, 15 Feb 2012 21:17:41 +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 21:17:41 +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 21:17:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 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: <838vk926rr.fsf@gnu.org> 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:83762 Archived-At: On 2/11/2012 2:01 AM, Eli Zaretskii wrote: >> 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? I tried this and it is somewhat better. I can see the text but all the newline appears as \205, [ as \255 and ] as \275. I think I simply want to tell ange-ftp to use ascii, not binary, but nothing I tried works.