🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62917

Re: NNTP and YENC

#62917
From: Bart Crane
Date: Tue, 07 Jan 2003 18:15
125 lines
5910 bytes
"Frank Slootweg" <franks@neth.hp.com> wrote in message
news:ave8uf$at3$2@support.neth.hp.com...
> [Using this response as an example of your much repeated 'argument':]
>
> Bart Crane (aka Phil <PeepingUnder@thecovers.org>) wrote:
> > David Magda <dmagda+usenet@ee.ryerson.ca> wrote in message
> [deleted]
> >> We don't. But why should I worry about Windows boxes when I'm running
> >> a Unix box? Microsoft is not making things easier for the rest of the
> >> world. In many instances it works quite hard in making things more
> >> difficult (e.g., "embracing-and-extending" standards like
> >> Kerberos 5 to break inter-operability).
> >
> > This text- vs. binary-mode thing is very old, fully documented, etc...
it is
> > really a no-brainer, I am very surprised that there is so little
> > understanding of the differences between the two modes.
>
>   I think that if you actually look at the situation *at the time* (i.e.
> when the NNTP spec was written), there was no question of text- versus
> binary mode, because all the *standard* [1] C (i.e. stdio(3S))
> documentation did *not* mention text- versus binary mode, for the simple
> reason that they did not exist (i.e. no "r" and "rb" for fopen(3S)).

It is interesting that your fopen() manual does not
document this.  What date does this documentation
have, if you don't mind?

In my operating system, a file is like a device. Reading
from a file is like reading from a device.  A file could be
an actual piece of hardware that sets bits 5 and above to
zero to indicate a "control", not a "data", transfer.  The
operating system, when it receives a value with all bits 5+
set to 0, and the low bits set to 00011010b, interprets
that to mean that the device has no more data to send: EOF.

The operating system can send to the device 00010011b
to cause it to stop sending, and 00010001b to resume.

This is how text-mode processing works.  The operating
system interprets data passing between the application
and the device.  Binary-mode requires additional signals
to control data transfer.  Text-mode uses the data lines
for control by interpreting some data as control codes.

I imagine the NNTP authors were well aware of this
file/device text/control situation.  ASCII specifies that
00 .. 1F and FF are control signals, thus unsuitable for transfer as
textual matter.  ASCII is referenced in RFC 977 via
RFC 821.  NNTP defines the use of only two control
codes: 00001010b and 00001101b, chosen because
ASCII-based devices interpret those benignly.

C/PM and DOS use 00011010b to mean End Of File,
which is safe because values with bits 5+ == 0 will not
appear in a text-stream.


>
>   So what you are doing is looking *now* with *current* information (and
> your colored glasses to the *past*. I hope you realize that that is a
> no-no.

To be sure, I did research on this matter before
bringing it up to this group, however, not being party
to the forming of the spec, I can only infer their
intent.

The way I see it is that my interpretation allows
interoperability among all kinds of computers
that have compatible definitions of "text-mode".
Your interpretation allows interoperability with
only those computers that are compatible in
"binary-mode".

Which of those do you think the authors had in
mind when designing a protocol to effiiciently
and widely distribute information?



>
>   FWIW, I have been in the UNIX world since 1983 and in the DOS/Windows
> world since 1989 and have to say that for *clueful* people, this Ctrl-Z
> 'problem' has never been one.

FWIW, I have been in the UNIX world since 1984 and
in the DOS/Windows world since 1987, and CTRL-Z
has been a problem for me.  I have had to address
the text-mode vs. binary-mode issues many times.
which is probably why I am particularly sensitive to this
issue: if you have not had to deal with this situation,
then you do not understand it. So I try to put it in terms
understandable by unix-only programmers... this
previously worked on my system, now it fails:

    telnet news.server.com 119 < cmds > data
    more < data

Thanks for your input.

Bart.


>
> [deleted]
>
> [1] Yes, the *DOS* C documentation probably mentioned text- versus binary
> mode and no, *that* (part) was *not* *standard* (conformant).

C started from Unix, and there is no difference between
"r" and "rb" on Unix, so it is understandable that a Unix-
implementation would not include it, not needing it,
but now that C is non Unix-specific, "r" and "rb" are
part of the standard library (err... I don't know that to
be a fact!!!)

Thanks again!!

Bart.



Technical Details
Message-ID: <UOES9.600712$P31.217850@rwcrnsc53>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc53.POSTED!not-for-mail
References: <BXLR9.432835$pN3.48082@sccrnsc03> <20030104215829.905$Rh@newsreader.com> <j8TR9.568229$WL3.160487@rwcrnsc54> <86isx3lflt.fsf@number6.magda.ca> <DdoS9.133$wz1.137034@news.uswest.net> <ave8uf$at3$2@support.neth.hp.com>

Show Full Headers
Complete Article Headers
Message-ID: <UOES9.600712$P31.217850@rwcrnsc53>
Subject: Re: NNTP and YENC
Date: Tue, 07 Jan 2003 18:15:16 GMT
From: "Bart Crane" <svcrane@attbi.com>
References: <BXLR9.432835$pN3.48082@sccrnsc03> <20030104215829.905$Rh@newsreader.com> <j8TR9.568229$WL3.160487@rwcrnsc54> <86isx3lflt.fsf@number6.magda.ca> <DdoS9.133$wz1.137034@news.uswest.net> <ave8uf$at3$2@support.neth.hp.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!rwcrnsc53.POSTED!not-for-mail
Newsgroups: news.software.nntp
Lines: 124
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 12.234.193.86
X-Complaints-To: abuse@attbi.com
X-Trace: rwcrnsc53 1041963316 12.234.193.86 (Tue, 07 Jan 2003 18:15:16 GMT)
NNTP-Posting-Date: Tue, 07 Jan 2003 18:15:16 GMT
Organization: AT&T Broadband