🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #62981

Re: NNTP and YENC

#62981
From: Bart Crane
Date: Thu, 09 Jan 2003 10:38
104 lines
4815 bytes
"Jeremy" <jeremy@exit109.com> wrote in message
news:1042007522.340079@ok-corral.gunslinger.net...
> Phil <PeepingUnder@TheCovers.org> wrote:
>
> > The test is taking a piece of C code using stdio.h, compile it on
> > DOS/Windows or Unix/Linux, and running it on both.  The result should be
> > identical.
>
> But whatever gave you that idea?  C code isn't inherently portable; you
> have to make it portable by working around platform-specific quirks.

I used fopen() "r" vs. "rb" to illustrate the difference between text-
and binary-modes.  The programs in question use stdin, which
defaults to "r" mode.

I am surprised at how many unix people here are saying that text-
filters are not stdio.h-compatible.  They sure are in my experience.


> In your case, this is one of them.  If you want to process data from
> Usenet, you're going to have to open it in binary mode.  Which, in
> fact, *would* be pretty portable, since Unix systems ignore the "b".

Yes, the consensus seems to be that "textual" == "binary".

This is a true statement, on Unix computers.


>
> > It does not seem right that this bit of major functionality be tossed
out.
> > Command-line programs get included in scripts.  Change one program, you
> > probably have to change a bunch of others.
>
> What functionality would you be tossing out by using binary mode for
> the datastream?  It seems to me that you'd simply be regaining the
> functionality you lost by switching to DOS in the first place.

There was no loss switching to DOS.  This software has been
running perfectly for years.


>
> I have existing shell scripts using command-line tools like that which
> expect to be able to handle raw NNTP data on stdin.  It works fine.

Because on Unix, "r" == "rb".  Not all computers are Unix
computers.


>
> > I am not averse to programming a solution to this.  After all, I did
write
> > all the software involved.
>
> Then it seems the solution is both simple and clear -- fix the software.
> yEnc didn't break it; it was always broken, you just didn't notice until
> now.

Nothing was broken, except my interpretation that textual == !binary.

But, my perception is not broken... textual != binary, except on Unix.


>
> >> The bottom line is this: your argument is that we should permanently
> >> cripple Usenet to accomodate a broken operating system, or badly
> >> designed software running on a broken operating system.  No.
> >
> > Nothing presented here indicates that including 1Ah as a Critical
Character
> > in YENC will "cripple Usenet".
>
> The goal is to make NNTP 8-bit clean.  Right now, you can't use nulls,
> but much software has been made able to deal with them, so we're on our
> way to getting rid of that problem.  You can't use CR or LF because that's
> special to the data.  There are a couple of other, more obscure special
> cases.  But that's the direction we're going, and you're asking for a
> step backwards.  The point is to *not* have anything that's forbidden in
> the data.

Unfortunately for your goals, you will always need to escape
something, because it is a text protocol, not a binary protocol.

Just look at the DOT DOT situation.  If the authors had the entire
7-bit range to choose from, why did they pick something that is
commonly typed?  Why not 01h?  Why not 04h? Because it
needed to be displayed, and anything in 00h..1Fh would have
screwed up the user's terminal.

It's been interesting... thanks.

Bart.


>
> --
> Jeremy  |  jeremy@exit109.com




Technical Details
Message-ID: <vicT9.501088$GR5.217639@rwcrnsc51.ops.asp.att.net>
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!logbridge.uoregon.edu!arclight.uoregon.edu!wn14feed!wn12feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi_feed3!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail
References: <BXLR9.432835$pN3.48082@sccrnsc03> <1041772747.319829@ok-corral.gunslinger.net> <BiqS9.160$wz1.152433@news.uswest.net> <1042007522.340079@ok-corral.gunslinger.net>

Show Full Headers
Complete Article Headers
Message-ID: <vicT9.501088$GR5.217639@rwcrnsc51.ops.asp.att.net>
Subject: Re: NNTP and YENC
Date: Thu, 09 Jan 2003 10:38:19 GMT
From: "Bart Crane" <svcrane@attbi.com>
References: <BXLR9.432835$pN3.48082@sccrnsc03> <1041772747.319829@ok-corral.gunslinger.net> <BiqS9.160$wz1.152433@news.uswest.net> <1042007522.340079@ok-corral.gunslinger.net>
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!logbridge.uoregon.edu!arclight.uoregon.edu!wn14feed!wn12feed!worldnet.att.net!204.127.198.204!attbi_feed4!attbi_feed3!attbi.com!rwcrnsc51.ops.asp.att.net.POSTED!not-for-mail
Newsgroups: news.software.nntp
Lines: 103
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: rwcrnsc51.ops.asp.att.net 1042108699 12.234.193.86 (Thu, 09 Jan 2003 10:38:19 GMT)
NNTP-Posting-Date: Thu, 09 Jan 2003 10:38:19 GMT
Organization: AT&T Broadband