From owner-freebsd-questions Wed Jan 28 22:43:31 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA10957 for questions-outgoing; Wed, 28 Jan 1998 22:43:31 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA10926 for ; Wed, 28 Jan 1998 22:43:20 -0800 (PST) (envelope-from grog@lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id RAA23632; Thu, 29 Jan 1998 17:13:12 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id RAA16992; Thu, 29 Jan 1998 17:13:12 +1030 (CST) (envelope-from grog) Message-ID: <19980129171311.01926@lemis.com> Date: Thu, 29 Jan 1998 17:13:11 +1030 From: Greg Lehey To: David Cc: freebsd-questions@FreeBSD.ORG Subject: Re: ascii conversion to binary References: <19980129155429.18439@lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: ; from David on Thu, Jan 29, 1998 at 12:22:18AM -0600 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe questions" On Thu, Jan 29, 1998 at 12:22:18AM -0600, David wrote: > On Thu, 29 Jan 1998, Greg Lehey wrote: > >> Date: Thu, 29 Jan 1998 15:54:29 +1030 >> From: Greg Lehey >> To: David >> Cc: Adam Simpson , >> freebsd-questions@FreeBSD.ORG >> Subject: Re: ascii conversion to binary >> >> On Wed, Jan 28, 1998 at 11:15:35PM -0600, David wrote: >>> On Thu, 29 Jan 1998, Greg Lehey wrote: >>> >>>> Date: Thu, 29 Jan 1998 11:39:42 +1030 >>>> From: Greg Lehey >>>> To: Adam Simpson >>>> Cc: freebsd-questions@FreeBSD.ORG >>>> Subject: Re: ascii conversion to binary >>>> >>>> On Wed, Jan 28, 1998 at 01:59:44PM -0600, Adam Simpson wrote: >>>>> If a file is transferred in ascii mode, is there a way to convert it back >>>>> to binary?? >>>> >>>> As others have said, no. >>>> >>>> There is *never* a reason to transfer files in ASCII. Always choose >>>> binary. >>> >>> I'll let you reset all my HTML codes in the web pages after I transfer >>> then in Binary. I'm getting tired of doing it after forgeting to type >>> ascii at the prompt. >> >> Please explain. Binary doesn't change anything. > > *Serveral* times I have moved a webpage site from one host to another. I > used command line FTP, Not a Win95 program such as CUTEFTP or WS_FTP , > Each time i've done a mget to pull all the files. As long as I change > modes to ascii from binary I can go to the site ( in a browser) after the > transfer and nothing has changed as far as the formating of theHTML document. > But if I don't change to ASCII and stay in BINARY , Since I just transfered the > JPG's and GIF's also, the HTML formating ie.. tabs, Returns, end of lines, > any formating I've done will and was wiped out and I had to take the page > back into an editor, and reset all the formating codes. Maybe I was doing > something wrong but I'm tired of haveing to redo a page every time I don't > change to ASCII when i transfer a TEXT file with page formating encoded > such as an HTML document. Well, if you've gone in with an editor, you'll know what's changed. What is it? Here's a thing to try: pull in the same web page in ascii and binary, and run diff against it: $ ftp remote-site ftp> bin ftp> get web-page.html web-page.bin ftp> ascii ftp> get web-page.html web-page.ascii ftp> ^D $ diff -wu web-page.bin web-page.ascii I'd be interested to see what the differences are. About the only thing I can guess is that the other end does something funny, but that's unusual. Greg