From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Thread: fdd80,32247abf28da27d4 X-Google-NewGroupId: yes X-Google-Thread: 1164f8,32247abf28da27d4 X-Google-NewGroupId: yes X-Google-Thread: f7344,32247abf28da27d4 X-Google-NewGroupId: yes X-Google-Attributes: gide311f70d09,gidd180ab3bd8,gid3717dac89a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!news-transit.tcx.org.uk!news.stack.nl!newsfeed.Update.UU.SE!news.Update.UU.SE!not-for-mail From: Johnny Billquist Newsgroups: alt.sys.pdp11,comp.sys.dec,comp.os.vms Subject: Re: QBUS Prototyping Date: Mon, 18 Apr 2011 08:11:58 -0700 Organization: Update Computer Club Message-ID: References: <8265dgFs33U3@mid.individual.net> NNTP-Posting-Host: 66-146-163-2.skyriver.net Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: Iltempo.Update.UU.SE 1303139520 21223 66.146.163.2 (18 Apr 2011 15:12:00 GMT) X-Complaints-To: newsmaster@Update.UU.SE NNTP-Posting-Date: Mon, 18 Apr 2011 15:12:00 +0000 (UTC) User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 In-Reply-To: Xref: g2news1.google.com alt.sys.pdp11:2047 comp.sys.dec:3124 comp.os.vms:39870 On 2011-04-18 05:52, Bob Koehler wrote: > In article, Johnny Billquist writes: > >> Actually, ftp don't have these problems. >> ftp was designed to walk around these exact problems. So, ftp deals with >> records, where each side are free to perform whatever stuff needed to >> figure out what a record is, how to store and retrieve it, and so on. >> So for Unix systems, if you transfer in ASCII mode, a record is the data >> between two LF. The data is sent over, with the FTP definition of record >> terminator, and the other side then strip of the FTP record terminator, >> and writes the record to disk, with whatever tricks needed on that >> system (like adding an LF on a Unix system). > > FTP doesn't really have the concept of records. It has the concept > of text files containing lines of text. It transfers these via a > standard that calls for lines of text to be separated by CRLF pairs. > The OS on each end is free to do it's own thing in deciding how to > store those lines of text. > > If FTP really had the concept of records, I could transmit a record > with a CRLF pair in the middle. FTP can't handle that idea. Some > OS use conventions that can't handle it, either. You can, and ftp do. CRLF in the middle of records must be encoded so not to be confused with the record terminator. And ftp have a way for doing that. Unless I remember wrong, you do (to transfer a CRLF in the middle of a record) encode it as CR+NUL+LF. The NUL will be stripped away by the receiving side, and the CRLF will be embedded within the record. > IMHO, this is better than lines of text separated by a single > character, because I can embed a CR or an LF, or any other byte in > the line of text, whether the OS at either end can deal with it or > not. (It's not FTP's fault if the OS can't handle it). Right. > And in practice, I would not trust any FTP client or FTP server to > transmit a line of text containing an embeded null character without > first proving to myself that it worked. Nor would I be particularly > comfortable that it was unlikely to break in some future update. Hmm. I should check this, but I believe ftp also specifies how to handle NUL characters correctly. Of course, you can always find standards breaking software. > Well, OK, maybe if I was transfering the text between two systems that > implimented STRU VMS. It should not make a difference. Johnny -- Johnny Billquist || "I'm on a bus || on a psychedelic trip email: bqt@softjar.se || Reading murder books pdp is alive! || tryin' to stay hip" - B. Idol