🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
133 messages
133 total messages Page 2 of 3 Started by Bart Crane Sun, 05 Jan 2003 01:33
Page 2 of 3 • 133 total messages
Re: NNTP and YENC
#62890
Author: Frank Slootweg
Date: Tue, 07 Jan 2003 09:53
28 lines
2291 bytes
Bart Crane <svcrane@attbi.com> wrote:
> 
> "Frank Slootweg" <franks@neth.hp.com> wrote in message
> news:avc235$or1$2@support.neth.hp.com...
>> Claus F�rber <claus-usenet-20030105@faerber.muc.de> wrote:
>> > greg andruk <gja@meowing.net> schrieb/wrote:
>> >> In the case of grep and sed, the relevant standard is POSIX,...
>> >
>> > Only for grep and sed on POSIX systems. For ports to other, non-POSIX
>> > systems, the relevant standard is not POSIX.
>>
>>   Of course it is. If grep/sed do not conform to POSIX (or SVID or XPG),
>> then they are *not conformant*, period. See my other response for
>> details.
> 
> I did not mean to imply that the grep and sed being used were purchased as
> some sort of POSIX-compliant system add-on, they are my versions of the
> popular Unix utilities
> 
> Or, are you saying that there is some sort of Windows Update to make my
> system posix-compliant, which fixes the situation?

  Of course "there is some sort of Windows Update". I mention one (Cygwin)
of the many alternatives in "my other response".

  So your sed and grep are broken, so, as has been said many, many, many
times by now, fix them or get better ones.
Re: NNTP and YENC
#62891
Author: Frank Slootweg
Date: Tue, 07 Jan 2003 10:08
34 lines
2489 bytes
[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)).

  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.

  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.

[deleted]

[1] Yes, the *DOS* C documentation probably mentioned text- versus binary
mode and no, *that* (part) was *not* *standard* (conformant).
Re: NNTP and YENC
#62893
Author: Frank Slootweg
Date: Tue, 07 Jan 2003 10:32
32 lines
2405 bytes
Claus F�rber <claus-usenet-20030106@faerber.muc.de> wrote:
> Frank Slootweg <franks@neth.hp.com> schrieb/wrote:
>>   And please no remarks about sed/grep on *DOS/Windows* 'having' to
>> terminate on Ctrl-Z. sed/grep are *UNIX*, or POSIX if you prefer,
>> standard utilities. They have to handle UNIX/POSIX text files.
> 
> If and only if they are tools on a POSIX system, they have to handle
> POSIX files. This is what the POSIX standard says.

  You're joking, right!? So you mean that tools which are meant to
provide interoperability are not meant to provide interoperability?

> The POSIX standard does neither say that programmes on other, non-POSIX
> systems, must conform to the POSIX standard nor that they must not be
> named "sed" or "grep".

  Of course they do.

> Acutally, the whole idea behind a "port" (i.e. adaption) of a POSIX
> standard utility to another system is that this other system does not  
> conform to POSIX. So you *want* to behave it differently. For example, a  
> Windows port certainly should recognize "\r\n" as a line ending or it  
> would not be useful at all.

  Yes, but a POSIX conformant utility on Windows will recognize "\r\n"
*in addition* to recognizing "\n".

> You can argue whether a port to Windows should terminate on Ctrl-Z (IMO
> it should not) but it is not a question of POSIX conformance.

  I beg to differ.
Re: NNTP and YENC
#62895
Author: Frank Slootweg
Date: Tue, 07 Jan 2003 11:11
73 lines
4231 bytes
Bart Crane (aka Phil <PeepingUnder@thecovers.org> wrote):
> Hello,
> 
> I don't know what you mean by "this does not happen"... because it does!!!

  May I suggest that you *read* my article and that you *repeat* the
tests I made? And may I suggest that you *check* your assumptions,
instead of assuming that your assumption are true and still true.

> Software that does not terminate on CTRL-Z is treating its input as binary,
> not text.

  There are only a *few* *DOS* utilities which treat Ctrl-Z specially
(see my response (below) for some which do *not*). *Windows* utilities
which treat Ctrl-Z specially are probably even fewer. Example: I just
copied a message.txt file (with a Ctrl-Z 'in the middle') with Windows
Explorer and it happily copied the whole file! I especially gave it a
.txt extension to give Windows Explorer a chance to treat it (specially)
as text, but apparently it could not be bothered, and rightfully so. (In
comparison, the (Windows 2000) "COPY /A" command still *does* terminate
on Ctrl-Z, and so it should, because that has been *documented*
behaviour since day one (of COPY).)

  So I am afraid that "Software that does not terminate on CTRL-Z is
treating its input as binary, not text." is mostly in_your_imagination/
yours, not actual current code.

> Thanks anyway!!
> 
> Bart.

[Rest of top-posted article:]
> Frank Slootweg <franks@neth.hp.com> wrote in message
> news:avc1qb$or1$1@support.neth.hp.com...
>> Bart Crane <svcrane@attbi.com> wrote:
>> [much deleted]
>> > In DOS/Windows, CR LF is mapped to LF, and SUB is interpreted
>> > as End Of File.  To maintain compatibility with DOS/Windows, only
>> > SUB need be escaped.
>>
>>   Well, I hate to break it to you but in "DOS/Windows", SUB (Ctrl-Z) is
>> *NOT* interpreted as End Of File. Perhaps in *your* "DOS" or *your*
>> "Windows" or *your* broken sed/grep, but not in "DOS/Windows" *in
>> general*!
>>
>>   As others have posted, this (Ctrl-Z) 'problem' was just caused by a
>> bad design choice in early DOS, but since that time, people have solved
>> those problem, also *on* (not neccessarily *in*) DOS.
>>
>>   Case in point: I just copied a file with a Ctrl-Z 'in the middle' from
>> UNIX to Windows (2000). I used stock Windows 'rcp' (both with "-a" and
>> "-b", made no difference), and stock Windows 'more' displayed the file
>> just fine, and stock 'find' (the *'DOS'* command, not the UNIX one)
>> could search past the Ctrl-Z just fine.
>>
>>   So what we have here is a set of *Microsoft* (for crying out loud)
>> *'DOS'/Windows* programs which (*rightfully*) ignore/accept Ctrl-Z in
>> *text* files.
>>
>>   And please no remarks about sed/grep on *DOS/Windows* 'having' to
>> terminate on Ctrl-Z. sed/grep are *UNIX*, or POSIX if you prefer,
>> standard utilities. They have to handle UNIX/POSIX text files. In UNIX
>> /POSIX text files, Ctrl-Z has no special meaning. Period.
>>
>>   For example Cygwin (set of UNIX utilities for Windows) grep also could
>> search past the Ctrl-Z just fine.
>>
>>   So if *your* DOS/Windows sed/grep can not handle Ctrl-Z in text files,
>> then, as the others have said many times, they are *broken* and *they*
>> should be fixed, not something else.
>>
>> [much deleted]
Re: NNTP and YENC
#62896
Author: Frank Slootweg
Date: Tue, 07 Jan 2003 11:14
63 lines
3242 bytes
Bart Crane <svcrane@attbi.com> wrote:
> "Zem" <invalid@invalid.invalid> wrote in message
> news:Xns92FBF0F662B2CZemZemZem@66.150.105.46...
>> "Bart Crane" <bcrane@iready.com> wrote in
>> news:QZrS9.133$ds6.237079@news.uswest.net:
>>
>> > Russ Allbery <rra@stanford.edu> wrote in message
>> > news:ylisx3xsbd.fsf@windlord.stanford.edu...
>> >>
>> >> I'm sorry that you don't find this particularly helpful, but the
>> >> short summary of my position is that you should fix, replace, or work
>> >> around your broken operating system rather than making the rest of
>> >> the world cater to its bugs.
>> >
>> > I don't know why you call it a bug, or the operating system as
>> > "broken". This situation is fully documented, and the software
>> > involved has been working perfectly for years.
>> >
>> > I think you mean "broken" as in "it does not work like it does on my
>> > Unix machine".  That is the situation: the exact same source code, run
>> > against the exact same data, on your machine it works, but not on
>> > mine.
>>
>> The NNTP protocol defines the platform independent interaction between
> NNTP
>> hosts. Implementations deal with any platform specific issues.
>>
>> 0x1A interpreted as an EOF is a well known and documented platform
> specific
>> issue. It is the responsibility of the implementations for the affected
>> platforms to handle.
>>
>> Your implementation is broken, not because it treats 0x1A as an EOF, but
>> because it does not handle its platform specific issues.
> 
> Hello,
> 
> There are no platform-specific issues in this program, yet if you
> compile and pipe the output from an nntp-server to it, you may
> get different results on different operating systems, depending
> on the data being transported.

  May I suggest that you re-read this statement of yours, and hopefully
realize how contradicting_itself/rediculous it is?

> #include <stdio.h>
> int    main(int argc, char** argv)
> {
>     int    c;
>     while (EOF != (c= getchar()))
>         putchar(c);
>     return 0;
> }
> 
> If your response is "use binary mode", then my response is "the
> spec says text-mode", and your response will be "we don't
> follow the spec"... and I don't have a good comeback to that!!!
> 
> Bart.
> 
>> --
>> zem.
Re: NNTP and YENC
#62898
Author: Karl Kleinpaste
Date: Tue, 07 Jan 2003 13:32
18 lines
2353 bytes
"Bart Crane" <svcrane@attbi.com> writes:
> There are no platform-specific issues in this program, yet if you

On the contrary, there is a huge platform-specific issue in this
program, which is that your platform has a platform-specific
conception of EOF which is unlike any other platform's, and this issue
is expressed in a drastic variation in underlying stdio calls.

Perfectly ordinary data streams contain 0x1a.  The fact that your
platform twists 0x1a into something special like that, on an
I/O-independent basis, is your platform's problem.

Similarly, UNIX systems treat 0x04 (^D) as EOF...but only in the
terminal driver, and only then in "cooked" mode.  Outside that very
specific I/O-dependent concern, 0x04 has no special significance at
all.  And UNIX terminal drivers can be told _not_ to treat 0x04 as
EOF, on a per-application basis.
Re: NNTP and YENC
#62899
Author: Karl Kleinpaste
Date: Tue, 07 Jan 2003 13:40
10 lines
1967 bytes
"Bart Crane" <svcrane@attbi.com> writes:
> I vote for the common definition found on all machines with a C compiler:
> fopen() "r" vs. "rb".

I, for one, don't know what you're talking about.  "Common definition"?

In 20+ years in the land of UNIX and Linux, I've never worked with a
system which comprehended an "rb" argument to fopen(3).  It sounds
like (to emphasize a phrase) a platform-specific issue.
Re: NNTP and YENC
#62900
Author: Bart Crane
Date: Tue, 07 Jan 2003 15:00
48 lines
3043 bytes
"greg andruk" <gja@meowing.net> wrote in message
news:1oiwxtjb247u0$.dlg@meowing.net...
> Bart Crane wrote:
>
>
> > I have considered that, but in the same section that the term
> > "textual matter" is used, 2.4.1, there follows the  phrase "text
> > messages will usually be displayed on the user's terminal",
> > which pretty much rules that out.
>
> No, in fact that supports the inclusion of SUB, because its very purpose
is
> to facilitate the display of "d�fficult" text.  That DRI managed to get
> this completely wrong is inconsequential.

I don't know what you mean by DRI?

But there is nothing in the spec that suggests people should embed
terminal control codes in order to increase readability of the articles.

The control codes among terminal manufacturers can differ widely.


>
> > They could not define in advance what kind of data needs to
> > be excluded so that the readability of the news is
> > compromised, so they lumped it into the vague term "textual matter".
>
> That's beyond silly, since the requirements were in fact well known by the
> time NNTP appeared.  Usenet had already been in operation for over six
> years, and predated MS-DOS by two.

Actually, I agree with you!!!  The authors were perfectly aware of
these requirements, and, in fact, it was standardized as ASCII, and
text is defined to be "every value that is not a control code".

The values 00..1F and FF are control-codes.

So, back to my original request: can NNTP servers please start
enforcing the "textual matter" clause of the nntp-spec?

If not all control codes, at least 1A?




Re: NNTP and YENC
#62901
Author: Bart Crane
Date: Tue, 07 Jan 2003 15:02
63 lines
3377 bytes
"Zem" <invalid@invalid.invalid> wrote in message
news:Xns92FC23A37303ZemZemZem@66.150.105.46...
> "Bart Crane" <svcrane@attbi.com> wrote in
> news:zyuS9.467090$pN3.50832@sccrnsc03:
>
> >
> > "Zem" <invalid@invalid.invalid> wrote in message
> > news:Xns92FBF0F662B2CZemZemZem@66.150.105.46...
> >> The NNTP protocol defines the platform independent interaction
> >> betweenNNTP hosts. Implementations deal with any platform specific
> >> issues.
> >>
> >> 0x1A interpreted as an EOF is a well known and documented platform
> >> specific issue. It is the responsibility of the implementations for
> >> the affected platforms to handle.
> >>
> >> Your implementation is broken, not because it treats 0x1A as an EOF,
> >> but because it does not handle its platform specific issues.
> >
> > There are no platform-specific issues in this program, yet if you
> > compile and pipe the output from an nntp-server to it, you may
> > get different results on different operating systems, depending
> > on the data being transported.
> >
> > #include <stdio.h>
> > int    main(int argc, char** argv)
> > {
> >     int    c;
> >     while (EOF != (c= getchar()))
> >         putchar(c);
> >     return 0;
> > }
>
> The difference in behavior is due to platform specific issues.
>
> > If your response is "use binary mode", then my response is "the
> > spec says text-mode", and your response will be "we don't
> > follow the spec"... and I don't have a good comeback to that!!!
>
> The mechanics of overcomming platform specific issues is irrelevent.

The NNTP spec defines Response Data as "textual matter".


>
> The spec doesn't define any special treatment for 0x1A. Within the
> context of an NNTP stream, 0x1A is just another character. If an
> implementation treats 0x1A as an end of data marker, it violates the NNTP
> protocol which defines the end of data marker as CRLF.CRLF .

That is the end of article indicator.

If you retrieve multiple articles into a single file, CRLF.CRLF does
not mean end-of-data.


>
> --
> zem.


Re: NNTP and YENC
#62903
Author: Bart Crane
Date: Tue, 07 Jan 2003 15:19
87 lines
4171 bytes
"Frank Slootweg" <franks@neth.hp.com> wrote in message
news:avecqn$at3$5@support.neth.hp.com...
> Bart Crane <svcrane@attbi.com> wrote:
> > "Zem" <invalid@invalid.invalid> wrote in message
> > news:Xns92FBF0F662B2CZemZemZem@66.150.105.46...
> >> "Bart Crane" <bcrane@iready.com> wrote in
> >> news:QZrS9.133$ds6.237079@news.uswest.net:
> >>
> >> > Russ Allbery <rra@stanford.edu> wrote in message
> >> > news:ylisx3xsbd.fsf@windlord.stanford.edu...
> >> >>
> >> >> I'm sorry that you don't find this particularly helpful, but the
> >> >> short summary of my position is that you should fix, replace, or
work
> >> >> around your broken operating system rather than making the rest of
> >> >> the world cater to its bugs.
> >> >
> >> > I don't know why you call it a bug, or the operating system as
> >> > "broken". This situation is fully documented, and the software
> >> > involved has been working perfectly for years.
> >> >
> >> > I think you mean "broken" as in "it does not work like it does on my
> >> > Unix machine".  That is the situation: the exact same source code,
run
> >> > against the exact same data, on your machine it works, but not on
> >> > mine.
> >>
> >> The NNTP protocol defines the platform independent interaction between
> > NNTP
> >> hosts. Implementations deal with any platform specific issues.
> >>
> >> 0x1A interpreted as an EOF is a well known and documented platform
> > specific
> >> issue. It is the responsibility of the implementations for the affected
> >> platforms to handle.
> >>
> >> Your implementation is broken, not because it treats 0x1A as an EOF,
but
> >> because it does not handle its platform specific issues.
> >
> > Hello,
> >
> > There are no platform-specific issues in this program, yet if you
> > compile and pipe the output from an nntp-server to it, you may
> > get different results on different operating systems, depending
> > on the data being transported.
>
>   May I suggest that you re-read this statement of yours, and hopefully
> realize how contradicting_itself/rediculous it is?

Well, it was pretty late, so let me look at it again!!

Can you help me by pointing out what you do not
understand?  Here is what I mean:

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

When nntp-data was textual, this worked on any
platform with a C-compiler and stdio.

Now that nntp-servers are transporting non-textual
data, on DOS, all data after a 1Ah is lost.


>
> > #include <stdio.h>
> > int    main(int argc, char** argv)
> > {
> >     int    c;
> >     while (EOF != (c= getchar()))
> >         putchar(c);
> >     return 0;
> > }
> >
> > If your response is "use binary mode", then my response is "the
> > spec says text-mode", and your response will be "we don't
> > follow the spec"... and I don't have a good comeback to that!!!
> >
> > Bart.
> >
> >> --
> >> zem.


Re: NNTP and YENC
#62904
Author: Bart Crane
Date: Tue, 07 Jan 2003 15:27
42 lines
2835 bytes
"Karl Kleinpaste" <karl@charcoal.com> wrote in message
news:vxkn0mdhyr1.fsf@cinnamon.vanillaknot.com...
> "Bart Crane" <svcrane@attbi.com> writes:
> > There are no platform-specific issues in this program, yet if you
>
> On the contrary, there is a huge platform-specific issue in this
> program, which is that your platform has a platform-specific
> conception of EOF which is unlike any other platform's, and this issue
> is expressed in a drastic variation in underlying stdio calls.

... which is the whole point about "textual matter", to get
around platform-specific issues.


>
> Perfectly ordinary data streams contain 0x1a.  The fact that your
> platform twists 0x1a into something special like that, on an
> I/O-independent basis, is your platform's problem.

It is not a problem, it is a mode.  Text- vs. binary-mode.


>
> Similarly, UNIX systems treat 0x04 (^D) as EOF...but only in the
> terminal driver, and only then in "cooked" mode.  Outside that very
> specific I/O-dependent concern, 0x04 has no special significance at
> all.  And UNIX terminal drivers can be told _not_ to treat 0x04 as
> EOF, on a per-application basis.

And other control-codes (non-textual matter) affect the
terminal directly.  The nntp authors disallowed these from
the data stream by virtue of the phrase "textual matter" and
"displayed on the user's terminal".

The choice of 1A == EOF is perfectly valid in a text-stream,
as a text-stream should not contain control codes except 0D,
0A and 09.



Re: NNTP and YENC
#62905
Author: Bart Crane
Date: Tue, 07 Jan 2003 15:31
46 lines
2987 bytes
"Frank Slootweg" <franks@neth.hp.com> wrote in message
news:ave827$at3$1@support.neth.hp.com...
> Bart Crane <svcrane@attbi.com> wrote:
> >
> > "Frank Slootweg" <franks@neth.hp.com> wrote in message
> > news:avc235$or1$2@support.neth.hp.com...
> >> Claus F�rber <claus-usenet-20030105@faerber.muc.de> wrote:
> >> > greg andruk <gja@meowing.net> schrieb/wrote:
> >> >> In the case of grep and sed, the relevant standard is POSIX,...
> >> >
> >> > Only for grep and sed on POSIX systems. For ports to other, non-POSIX
> >> > systems, the relevant standard is not POSIX.
> >>
> >>   Of course it is. If grep/sed do not conform to POSIX (or SVID or
XPG),
> >> then they are *not conformant*, period. See my other response for
> >> details.
> >
> > I did not mean to imply that the grep and sed being used were purchased
as
> > some sort of POSIX-compliant system add-on, they are my versions of the
> > popular Unix utilities
> >
> > Or, are you saying that there is some sort of Windows Update to make my
> > system posix-compliant, which fixes the situation?
>
>   Of course "there is some sort of Windows Update". I mention one (Cygwin)
> of the many alternatives in "my other response".
>
>   So your sed and grep are broken, so, as has been said many, many, many
> times by now, fix them or get better ones.

Oh, I thought you meant a solution that did not require a
re-compile or software replacement.

Anyway, as has been said many, many, many, many, many times
before, these tools are "text-processing" utilities, the nntp-server
is supposed to output "textual matter", "text" vs. "binary" is
well-known and fully documented, and all this has been working
perfectly for years.




Re: NNTP and YENC
#62906
Author: Frank Slootweg
Date: Tue, 07 Jan 2003 16:00
100 lines
5574 bytes
Bart Crane <svcrane@attbi.com> wrote:
> "Frank Slootweg" <franks@neth.hp.com> wrote in message
> news:avecqn$at3$5@support.neth.hp.com...
>> Bart Crane <svcrane@attbi.com> wrote:
>> > "Zem" <invalid@invalid.invalid> wrote in message
>> > news:Xns92FBF0F662B2CZemZemZem@66.150.105.46...
>> >> "Bart Crane" <bcrane@iready.com> wrote in
>> >> news:QZrS9.133$ds6.237079@news.uswest.net:
>> >>
>> >> > Russ Allbery <rra@stanford.edu> wrote in message
>> >> > news:ylisx3xsbd.fsf@windlord.stanford.edu...
>> >> >>
>> >> >> I'm sorry that you don't find this particularly helpful, but the
>> >> >> short summary of my position is that you should fix, replace, or
> work
>> >> >> around your broken operating system rather than making the rest of
>> >> >> the world cater to its bugs.
>> >> >
>> >> > I don't know why you call it a bug, or the operating system as
>> >> > "broken". This situation is fully documented, and the software
>> >> > involved has been working perfectly for years.
>> >> >
>> >> > I think you mean "broken" as in "it does not work like it does on my
>> >> > Unix machine".  That is the situation: the exact same source code,
> run
>> >> > against the exact same data, on your machine it works, but not on
>> >> > mine.
>> >>
>> >> The NNTP protocol defines the platform independent interaction between
>> > NNTP
>> >> hosts. Implementations deal with any platform specific issues.
>> >>
>> >> 0x1A interpreted as an EOF is a well known and documented platform
>> > specific
>> >> issue. It is the responsibility of the implementations for the affected
>> >> platforms to handle.
>> >>
>> >> Your implementation is broken, not because it treats 0x1A as an EOF,
> but
>> >> because it does not handle its platform specific issues.
>> >
>> > Hello,
>> >
>> > There are no platform-specific issues in this program, yet if you
>> > compile and pipe the output from an nntp-server to it, you may
>> > get different results on different operating systems, depending
>> > on the data being transported.
>>
>>   May I suggest that you re-read this statement of yours, and hopefully
>> realize how contradicting_itself/rediculous it is?
> 
> Well, it was pretty late, so let me look at it again!!
> 
> Can you help me by pointing out what you do not
> understand?  Here is what I mean:
> 
>    telnet news.server.com 119 < commands > data
>    more < data
> 
> When nntp-data was textual, this worked on any
> platform with a C-compiler and stdio.
> 
> Now that nntp-servers are transporting non-textual
> data, on DOS, all data after a 1Ah is lost.

[Note that, as has been said (by me and others), this *does* work on
modern DOS/Windows platforms, but you seem to be unimpressed by actual
facts. But it is hardly the point whether or not this works. The point
is what the (Usenet/NNTP) standards require/offer. And no, the C/
stdio(3S) standard is *not* relevant, for exactly the reason you say:
platform-, i.e. also language-, independence.]

  Let me try once more: NNTP servers are *still* transporting "textual
data". Only, *within* that "textual data" some people try to transmit
*encoded* versions of "non-textual"/"binary" data, i.e. YENC in your
case. That is fine, but that is an encoding scheme *on top* of NNTP.
That encoding scheme will have to live with the capabilities and
incapabilities of the transport, i.e. NNTP. In YENC's case that is no
problem. Now *your* *broken* *DOS* software comes in the picture and now
suddenly everone should change everything, just because you can not, or
are unwilling to, fix your broken software? I/we don't think so.

  Another take: There is *no* requirement whatsoever that (Usenet) News
articles *must* be transported by NNTP, i.e. they can, have been and are
transported by other transports (for example UUCP, NFS, physical media,
etc.). Also for *those* transports, Ctrl-Z is *not* special cased.

  Many respondents in this thread have tried to explain it to you many
times and in many different ways. Don't you think that it is very, very
likely that you are wrong (because you don't understand (or because you
don't want to understand?)?

  I think that Karl Kleinpaste explained things very clearly in
<news:vxkn0mdhyr1.fsf@cinnamon.vanillaknot.com>, i.e. UNIX has a
*similar* EOF 'problem' (Ctrl-D), but on UNIX people code around that
'problem' and so do people on DOS?windows, so it *can* be done. That
*you* are unable/unwilling to do it is another matter.

[deleted]
Re: NNTP and YENC
#62907
Author: Bart Crane
Date: Tue, 07 Jan 2003 16:12
53 lines
3294 bytes
"Frank Slootweg" <franks@neth.hp.com> wrote in message
news:aveac2$at3$3@support.neth.hp.com...
> Claus F�rber <claus-usenet-20030106@faerber.muc.de> wrote:
> > Frank Slootweg <franks@neth.hp.com> schrieb/wrote:
> >>   And please no remarks about sed/grep on *DOS/Windows* 'having' to
> >> terminate on Ctrl-Z. sed/grep are *UNIX*, or POSIX if you prefer,
> >> standard utilities. They have to handle UNIX/POSIX text files.
> >
> > If and only if they are tools on a POSIX system, they have to handle
> > POSIX files. This is what the POSIX standard says.
>
>   You're joking, right!? So you mean that tools which are meant to
> provide interoperability are not meant to provide interoperability?

IFF "on a POSIX system".  Behavior for POSIX-compatible
programs running on non-POSIX systems is undefined.


>
> > The POSIX standard does neither say that programmes on other, non-POSIX
> > systems, must conform to the POSIX standard nor that they must not be
> > named "sed" or "grep".
>
>   Of course they do.

Forgive my use of the trademarked names "sed" and "grep".  I was
amazed that these utilities were not available on DOS when I
moved there from Unix that I immediately rewrote my
favorites.

For example, my "tee" is dated 06/12/89.  It also fails in
this ctrl-z situation, as does head, wc.   Of course, strings
works!!  It opens the file in "rb" mode.


>
> > Acutally, the whole idea behind a "port" (i.e. adaption) of a POSIX
> > standard utility to another system is that this other system does not
> > conform to POSIX. So you *want* to behave it differently. For example, a
> > Windows port certainly should recognize "\r\n" as a line ending or it
> > would not be useful at all.
>
>   Yes, but a POSIX conformant utility on Windows will recognize "\r\n"
> *in addition* to recognizing "\n".
>
> > You can argue whether a port to Windows should terminate on Ctrl-Z (IMO
> > it should not) but it is not a question of POSIX conformance.
>
>   I beg to differ.


Re: NNTP and YENC
#62908
Author: Frank Slootweg
Date: Tue, 07 Jan 2003 16:16
34 lines
2620 bytes
Bart Crane <svcrane@attbi.com> wrote:
> "greg andruk" <gja@meowing.net> wrote in message
> news:1oiwxtjb247u0$.dlg@meowing.net...
[deleted]
>> That's beyond silly, since the requirements were in fact well known by the
>> time NNTP appeared.  Usenet had already been in operation for over six
>> years, and predated MS-DOS by two.
> 
> Actually, I agree with you!!!  The authors were perfectly aware of
> these requirements, and, in fact, it was standardized as ASCII, and
> text is defined to be "every value that is not a control code".

  I assume you can give a ((*applicable*) *standard*) reference where it
says that "text is defined to be "every value that is not a control
code""? I.e. perhaps it is 'defined' as such in your mind, but not in
reality (i.e. the applicable Usenet/NNTP standards/practices).

> The values 00..1F and FF are control-codes.

  In the *ASCII* standard, but we aren't talking about the ASCII
standard, are we? (If we were and your definition of text would be
correct, then we couldn't have (for example) tab (or form-feed or bell
or escape or ...) characters either. Let me assure you that we can.)
(Minor nit: You mean 7F, not FF, ASCII only defines only 00-7F.)

> So, back to my original request: can NNTP servers please start
> enforcing the "textual matter" clause of the nntp-spec?

  They already do.

> If not all control codes, at least 1A?

  See above.
Re: NNTP and YENC
#62909
Author: Frank Slootweg
Date: Tue, 07 Jan 2003 16:26
25 lines
2180 bytes
Bart Crane <svcrane@attbi.com> wrote:
> "Zem" <invalid@invalid.invalid> wrote in message
> news:Xns92FC23A37303ZemZemZem@66.150.105.46...
[re-hashed stuff deleted]
>> The spec doesn't define any special treatment for 0x1A. Within the
>> context of an NNTP stream, 0x1A is just another character. If an
>> implementation treats 0x1A as an end of data marker, it violates the NNTP
>> protocol which defines the end of data marker as CRLF.CRLF .
> 
> That is the end of article indicator.
> 
> If you retrieve multiple articles into a single file, CRLF.CRLF does
> not mean end-of-data.

  Yes, as far as *NNTP* is concerned, CRLF.CRLF *does* mean end-of-data
(i.e. end of article). *NNTP* has no concept of "retrieving multiple
articles into a single file". That is (somewhat of) a *Usenet* concept.
(And again, "Usenet" != "NNTP", and Usenet does not even *need* NNTP,
and Usenet *predates* NNTP, and .... ad infinitum.)

  No offense, but this is not really your area of expertise, is it?
Perhaps it is better to (start to) listen/try_to_understand, instead of
trying to 'educate'/'convince' people who are obviously more informed
than you?
Re: NNTP and YENC
#62911
Author: Karl Kleinpaste
Date: Tue, 07 Jan 2003 16:37
20 lines
2376 bytes
"Bart Crane" <svcrane@attbi.com> writes:
> Now that nntp-servers are transporting non-textual
> data, on DOS, all data after a 1Ah is lost.

Then fix DOS' problem.

It is a problem in how *DOS* deals with stdio, with the *DOS* idea of
a data stream, for the broken *DOS* model of I/O.

[a] The NNTP spec is not, and pretty much never has been, the last
word in how NNTP actually works in the real world.  Oh, it's
important, surely, or once was.  But a huge amount of Usenet is bound
up in ancient coding standards, common practice, and social structure,
none of which is reflected in RFC 977.

[b] Your platform is broken, period.  People have been transporting
0x1a around Usenet for eons.  That you are just noticing a problem
here is an indication of little more than that your platform has just
now caught up with long-standing practice.
Re: NNTP and YENC
#62910
Author: Karl Kleinpaste
Date: Tue, 07 Jan 2003 16:37
13 lines
2184 bytes
"Bart Crane" <svcrane@attbi.com> writes:
> It is not a problem, it is a mode.  Text- vs. binary-mode.

Your arbitrary distinction of "text" versus "binary" "mode" is a DOS
phantasm.  The rest of the world doesn't really believe in it very
much.  fopen(3) in UNIX-derived stdio doesn't understand any such
concept as an "rb" qualifier.  It is a platform-specific extension,
based on DOS' need to work around its own problems.

Sure, fgets(3) nominally believes in "lines" of text, based on hunting
for a terminating newline character.  Big deal.  There is very little
else in stdio that depends on, or even recognizes, such stuff.
Re: NNTP and YENC
#62912
Author: Karl Kleinpaste
Date: Tue, 07 Jan 2003 16:37
19 lines
2383 bytes
"Bart Crane" <svcrane@attbi.com> writes:
> I don't know what you mean by DRI?

Digital Research, Inc.
The folks who first created DOS, and created a broken product by design.

> If not all control codes, at least 1A?

No.

You are dealing with a trivial problem that only occurs on your
platform.  Everyone else's platform is happy; you have a platform-
specific manifestation of a stdio weirdness, and your ongoing whining
about this extremely localized difficulty speaks poorly of you.

No one will re-work the NNTP server habits of tens of thousands of
machines merely in order to step around the attitudinal weirdnesses
(read: broken stdio implementation) of DOS.
Re: NNTP and YENC
#62913
Author: Frank Slootweg
Date: Tue, 07 Jan 2003 16:59
54 lines
3430 bytes
Bart Crane <svcrane@attbi.com> wrote:
> "Frank Slootweg" <franks@neth.hp.com> wrote in message
> news:ave827$at3$1@support.neth.hp.com...
>> Bart Crane <svcrane@attbi.com> wrote:
>> >
>> > "Frank Slootweg" <franks@neth.hp.com> wrote in message
>> > news:avc235$or1$2@support.neth.hp.com...
>> >> Claus F�rber <claus-usenet-20030105@faerber.muc.de> wrote:
>> >> > greg andruk <gja@meowing.net> schrieb/wrote:
>> >> >> In the case of grep and sed, the relevant standard is POSIX,...
>> >> >
>> >> > Only for grep and sed on POSIX systems. For ports to other, non-POSIX
>> >> > systems, the relevant standard is not POSIX.
>> >>
>> >>   Of course it is. If grep/sed do not conform to POSIX (or SVID or
> XPG),
>> >> then they are *not conformant*, period. See my other response for
>> >> details.
>> >
>> > I did not mean to imply that the grep and sed being used were purchased
> as
>> > some sort of POSIX-compliant system add-on, they are my versions of the
>> > popular Unix utilities
>> >
>> > Or, are you saying that there is some sort of Windows Update to make my
>> > system posix-compliant, which fixes the situation?
>>
>>   Of course "there is some sort of Windows Update". I mention one (Cygwin)
>> of the many alternatives in "my other response".
>>
>>   So your sed and grep are broken, so, as has been said many, many, many
>> times by now, fix them or get better ones.
> 
> Oh, I thought you meant a solution that did not require a
> re-compile or software replacement.

  Then what *did* you expect? How on earth can one fix something without
fixing/replacing it?

> Anyway, as has been said many, many, many, many, many times
> before, these tools are "text-processing" utilities, the nntp-server
> is supposed to output "textual matter", "text" vs. "binary" is
> well-known and fully documented, and all this has been working
> perfectly for years.

[I will skip the "text" vs. "binary" 'issue' because it exists only in
your mind, not in any applicable real standard.]

  Because we (all) have been getting round and round several times, and
are getting exactly nowhere real fast, let me ask a specific question:

  *Why* don't you fix the 'problem' in the way that was suggested (by
fixing/replacing sed/grep/<whatever>)?
Re: NNTP and YENC
#62914
Author: JanC
Date: Tue, 07 Jan 2003 17:04
15 lines
1786 bytes
"Bart Crane" <svcrane@attbi.com> schreef:

> "text" vs. "binary" is
> well-known and fully documented, and all this has been working
> perfectly for years.

"Text" & "binary" are defined and documented on a per-platform/protocol 
basis, not in any cross-platform/protocol way.

-- 
JanC

"Be strict when sending and tolerant when receiving."
RFC 1958 - Architectural Principles of the Internet - section 3.9
Re: NNTP and YENC
#62915
Author: Frank Slootweg
Date: Tue, 07 Jan 2003 17:06
56 lines
3567 bytes
Bart Crane <svcrane@attbi.com> wrote:
> "Frank Slootweg" <franks@neth.hp.com> wrote in message
> news:aveac2$at3$3@support.neth.hp.com...
>> Claus F�rber <claus-usenet-20030106@faerber.muc.de> wrote:
>> > Frank Slootweg <franks@neth.hp.com> schrieb/wrote:
>> >>   And please no remarks about sed/grep on *DOS/Windows* 'having' to
>> >> terminate on Ctrl-Z. sed/grep are *UNIX*, or POSIX if you prefer,
>> >> standard utilities. They have to handle UNIX/POSIX text files.
>> >
>> > If and only if they are tools on a POSIX system, they have to handle
>> > POSIX files. This is what the POSIX standard says.
>>
>>   You're joking, right!? So you mean that tools which are meant to
>> provide interoperability are not meant to provide interoperability?
> 
> IFF "on a POSIX system".  Behavior for POSIX-compatible
> programs running on non-POSIX systems is undefined.

  Says who? I.e. post a direct quote (and preferably) URL of an
*official* *applicable* document.

>> > The POSIX standard does neither say that programmes on other, non-POSIX
>> > systems, must conform to the POSIX standard nor that they must not be
>> > named "sed" or "grep".
>>
>>   Of course they do.
> 
> Forgive my use of the trademarked names "sed" and "grep".  I was
> amazed that these utilities were not available on DOS when I
> moved there from Unix that I immediately rewrote my
> favorites.
> 
> For example, my "tee" is dated 06/12/89.  It also fails in
> this ctrl-z situation, as does head, wc.   Of course, strings
> works!!  It opens the file in "rb" mode.

  So what you are saying is that your sed, grep, tee, head and wc are
broken and that your strings isn't. So now you know what to fix/replace.

  FWIW, I am amazed that you ever used UNIX and still are so mis-/
uninformed (to put it nicely) in these matters.

>> > Acutally, the whole idea behind a "port" (i.e. adaption) of a POSIX
>> > standard utility to another system is that this other system does not
>> > conform to POSIX. So you *want* to behave it differently. For example, a
>> > Windows port certainly should recognize "\r\n" as a line ending or it
>> > would not be useful at all.
>>
>>   Yes, but a POSIX conformant utility on Windows will recognize "\r\n"
>> *in addition* to recognizing "\n".
>>
>> > You can argue whether a port to Windows should terminate on Ctrl-Z (IMO
>> > it should not) but it is not a question of POSIX conformance.
>>
>>   I beg to differ.
Re: NNTP and YENC
#62916
Author: Juergen Helbing
Date: Tue, 07 Jan 2003 17:15
24 lines
1405 bytes
"Phil" <PeepingUnder@TheCovers.org> wrote:

>But, in case someone was looking for a reason to
>stop the madness, this is one: it violates the NNTP spec.

You should consider that the MIME types 8bit and binary
exists also for Usenet messages. And they comply also
to the NNTP spec (which is completely outdated and
does not reflect the current status of Usenet at all).

Lately I've also seen a lot of messages containing 
NULL characters. Many C-programmers will have
a lot of problems with this  :-)

Good Luck with your filters.
It would have been nice to know what you are doing.

So long
-- 
Juergen



Re: NNTP and YENC
#62917
Author: 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.



Re: NNTP and YENC
#62918
Author: Dr.Ruud
Date: Tue, 07 Jan 2003 18:51
43 lines
2623 bytes
Phil (Bart Crane) skribis:

> 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.

That is as if you have never seen any '#ifdef OS_TYPE' lines.

With properly written C-code (that has OS_TYPE-specific code where needed)
the result is identical (not necessarily binary identical while still
inside the borders of the OS-of-the-moment).


> It is not.  On Unix/Linux, the entire data-set comes through.
> On On DOS/Windows, every after the 1Ah is not processed.

Blame the process.


> Nothing presented here indicates that including 1Ah as a Critical
> Character in YENC will "cripple Usenet".

How about null-bytes (even \0-escaped ones) in Header-lines?
They do occur in the wild, google: sendmail header null-byte.
"Be conservative in what you generate, and liberal in what you accept."


> Ultimately, as evidenced by the lack of a hard definition of "textual", it
> comes down to "how compatible do you want to be?"  It would be pretty
> difficult to be compatible with an operating system that uses 0D as the
> End Of File indicator.  Any NNTP implementor would have to decide for
> themselves.

At that Operating System's 'side of the fence' it can do anything it
should. At the world's side, just behave like >90% of the others do.

BTW, UCS4 is very textual.

-- 
Affijn, Ruud


Re: NNTP and YENC
#62920
Author: Thomas
Date: Tue, 07 Jan 2003 19:18
27 lines
2438 bytes
Bart Crane wrote:

> I don't know what you mean by DRI?

Digital Research Incorporated, the developers of CP/M, DR-DOS, and GEM. 
Interesting to see what MS did to DOS when DRI invented stuff as on line help, 
multitasking, and other innovations.

> So, back to my original request: can NNTP servers please start
> enforcing the "textual matter" clause of the nntp-spec?

Be conservative in what you send, be liberal in what you accept.

News servers are liberal, and as they're not supposed to change the body of what 
they receive, they send out the same stuff as well. Maybe you should complain 
against the folks who post.

Anyway... whether the server filters out articles with characters that you do 
not like, or your application drops them, does not really make a difference, 
does it? You do not see the whole article.

While I can enjoy my Ctrl-Z's here.


Thomas

Re: NNTP and YENC
#62921
Author: Bart Crane
Date: Tue, 07 Jan 2003 19:26
108 lines
5749 bytes
"Frank Slootweg" <franks@neth.hp.com> wrote in message
news:aveugf$qt3$5@support.neth.hp.com...
> Bart Crane <svcrane@attbi.com> wrote:
> > "greg andruk" <gja@meowing.net> wrote in message
> > news:1oiwxtjb247u0$.dlg@meowing.net...
> [deleted]
> >> That's beyond silly, since the requirements were in fact well known by
the
> >> time NNTP appeared.  Usenet had already been in operation for over six
> >> years, and predated MS-DOS by two.
> >
> > Actually, I agree with you!!!  The authors were perfectly aware of
> > these requirements, and, in fact, it was standardized as ASCII, and
> > text is defined to be "every value that is not a control code".
>
>   I assume you can give a ((*applicable*) *standard*) reference where it
> says that "text is defined to be "every value that is not a control
> code""? I.e. perhaps it is 'defined' as such in your mind, but not in
> reality (i.e. the applicable Usenet/NNTP standards/practices).

RFC 977 refers to RFC 821 which refers to ASCII X3.4, which defines
a 7-bit character set, the values 00.1F and 7F(!) as control codes, all
others being text codes.

Here is an interesting link on the history of some codes:
http://www.wps.com/texts/codes/


>
> > The values 00..1F and FF are control-codes.
>
>   In the *ASCII* standard, but we aren't talking about the ASCII
> standard, are we? (If we were and your definition of text would be
> correct, then we couldn't have (for example) tab (or form-feed or bell
> or escape or ...) characters either. Let me assure you that we can.)
> (Minor nit: You mean 7F, not FF, ASCII only defines only 00-7F.)

ASCII is the standard here, yes.  American Standard Code for
Information Interchange, used by NNTP, a Transport Protocol
that allows information to be interchanged.

Imagine an nntp system that had one client whose terminal,
when it attempted to display BEL, would power off.  He
would complain to the nntp-server provider, who would
have to weigh the costs and benefits of providing
compatibility with that one client.  Now, imagine everyone
enjoys beeping each other, so the nntp-server provider
decides that compatibility with that client is not worth
ruining every one's fun.  So, the nntp-service provider will
include BEL as a textual character in their ASCII-derived,
custom character-set.  Everyone is happy, except one
client.

Now, substitute CTRL-Z for BEL.  The nntp-service
provider proposes defining the character-set such that
CTRL-Z is not a textual character, and no one objects
because it carries no import detrimental to their own
desires.  Everyone is happy.

The NNTP authors specifically do not define what
character set to use to define "textual matter", because
it is defined by the makeup of their clients, who all
must cooperate to avoid trashing each other's terminal.

I claim this because the authors say that the data is
"usually to be displayed on the user's terminal".  This
requires clients to be cooperative with respect to the
data they send, because it will go directly to another
client's output device.

Now, since terminals are no longer such the rage,
people are considering re-using those control-codes,
which is fine, except for 1Ah, because, as a control-
code, it is being interpreted by the operating system
when the device or file is being accessed in text-mode.

As with the BEL situation, the nntp-server providers
must make the decision: should we make CTRL-Z a
non-textual character for our one client? Or, will
disallowing everyone else from sending it going to ruin
their fun.

As long as the protocol has to "escape" any data,
CR, LF, DOT, then 1Ah is not a burden, it does not
set back Usenet by 10 years, it is merely a symptom
of the textual nature of NNTP.  When NNTP is
binary, when you can no longer telnet into it and give
it commands, then text-processing systems, by
definition, will not work.

At least, it works for me!!

Bart.


>
> > So, back to my original request: can NNTP servers please start
> > enforcing the "textual matter" clause of the nntp-spec?
>
>   They already do.
>
> > If not all control codes, at least 1A?
>
>   See above.


Re: NNTP and YENC
#62922
Author: Karl Kleinpaste
Date: Tue, 07 Jan 2003 19:27
15 lines
2270 bytes
"Bart Crane" <svcrane@attbi.com> writes:
> It is interesting that your fopen() manual does not document this.
> What date does this documentation have, if you don't mind?

I've never written C under DOS.  I've never seen a man page for
fopen(3) which mentions "rb".  This is because it is only systems like
DOS that have need of this r/rb distinction in the first place -- other
systems generalize adequately without the need for the special case.

> This is how text-mode processing works.  The operating system
> interprets data passing between the application and the device.

Stop being insulting.  This is not Computer Science 101, and there are
man-millennia of experience at work here.
Re: NNTP and YENC
#62923
Author: Russ Allbery
Date: Tue, 07 Jan 2003 19:41
24 lines
2461 bytes
Karl Kleinpaste <karl@charcoal.com> writes:

> In 20+ years in the land of UNIX and Linux, I've never worked with a
> system which comprehended an "rb" argument to fopen(3).  It sounds like
> (to emphasize a phrase) a platform-specific issue.

Well, to be fair, most Unixes support "rb" as a flag to fopen.  They just
ignore the "b".  For example, from the Linux manual pages:

    The mode string can also include the letter "b" either as a last
    character or as a character between the characters in any of the two-
    character strings described above.  This is strictly for compatibility
    with ANSI X3.159-1989 ("ANSI C") and has no effect; the "b" is ignored
    on all POSIX conforming systems, including Linux.  (Other systems may
    treat text files and binary files differently, and adding the "b" may
    be a good idea if you do I/O to a binary file and expect that your
    program may be ported to non-Unix environments.)

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: NNTP and YENC
#62926
Author: Dr.Ruud
Date: Tue, 07 Jan 2003 20:05
29 lines
2218 bytes
Bart Crane skribis:

> 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.

Specific OS-routines do that. It is perfectly possible that
the read()-implementation of one C-compiler under DOS does
not stop the text-stream at Ctrl-Z, and the other one does.
Such behaviour might even depend on a compiler-switch.

Things like this continue to bug people, see .NET:
http://www.dotnet247.com/247reference/msgs/24/122019.aspx


> ASCII specifies that
> 00 .. 1F and FF are control signals

For FF read 7F.

-- 
Affijn, Ruud


Re: NNTP and YENC
#62925
Author: Bart Crane
Date: Tue, 07 Jan 2003 20:08
81 lines
4148 bytes
"Frank Slootweg" <franks@neth.hp.com> wrote in message
news:avev30$qt3$6@support.neth.hp.com...
> Bart Crane <svcrane@attbi.com> wrote:
> > "Zem" <invalid@invalid.invalid> wrote in message
> > news:Xns92FC23A37303ZemZemZem@66.150.105.46...
> [re-hashed stuff deleted]
> >> The spec doesn't define any special treatment for 0x1A. Within the
> >> context of an NNTP stream, 0x1A is just another character. If an
> >> implementation treats 0x1A as an end of data marker, it violates the
NNTP
> >> protocol which defines the end of data marker as CRLF.CRLF .
> >
> > That is the end of article indicator.
> >
> > If you retrieve multiple articles into a single file, CRLF.CRLF does
> > not mean end-of-data.
>
>   Yes, as far as *NNTP* is concerned, CRLF.CRLF *does* mean end-of-data
> (i.e. end of article).

Yes, and this is a possible workaround.  By saving each
article in its own file, any embedded ctrl-z will invalidate only
that article, and the remaining articles will be processed.

This is not an efficient solution, as it requires spawning the
nntp-client and decoder for each article retrieved.  The way
I handle multi-parts will need to change.  But, it is viable,
especially given that most processing is done in the
background.

> *NNTP* has no concept of "retrieving multiple
> articles into a single file". That is (somewhat of) a *Usenet* concept.

You misunderstand the way my nntp-client works.  All it
does is implement the NNTP spec enough to retrieve
articles and write them to stdout.  There is no concept
of storing articles in files in my nntp-client.

This is, of course, the problem.  The data being
transported is supposed to be "text", but it contains
values that my operating system interprets as control
characters.

> (And again, "Usenet" != "NNTP", and Usenet does not even *need* NNTP,
> and Usenet *predates* NNTP, and .... ad infinitum.)

Usenet does not need NNTP, but when it does use NNTP
servers on the public network, it should conform to the
NNTP spec.

My nntp-client is written to the spec, yet it is failing on data
from other clients.

I would like nntp-servers to not forward to me data that
is outside the range of text.

How about the server testing for an X-header that
indicates its ability to receive a non-text stream?


>
>   No offense, but this is not really your area of expertise, is it?

Text-mode processing is definitely an area of expertise for me
(many years ago).  I wrote my own versions of the standard
unix utilities, and I and others use them every day.

NNTP is not my area of expertise.  I can only go by the spec.


> Perhaps it is better to (start to) listen/try_to_understand, instead of
> trying to 'educate'/'convince' people who are obviously more informed
> than you?

I am definitely listening.




Re: NNTP and YENC
#62927
Author: Klaas
Date: Tue, 07 Jan 2003 20:35
16 lines
1973 bytes
After careful consideration, Bart Crane muttered:

>> I vote for what the relevant RFCs acrtually stated.  As noted in the
>> messaged linked before, the intention is that "text" is as defined in
>> the mail standards.  SMTP does not really define what characters are
>> allowed  in a message body, but 822 does do that.
> 
> I have considered that, but in the same section that the term
> "textual matter" is used, 2.4.1, there follows the  phrase "text
> messages will usually be displayed on the user's terminal",
> which pretty much rules that out.

How could any statement that contains "usually" rule /anything/ out?

-Mike
Re: NNTP and YENC
#62928
Author: Rene
Date: Tue, 07 Jan 2003 21:04
56 lines
3644 bytes
"Bart Crane" <svcrane@attbi.com> wrote:
> RFC 977 refers to RFC 821 which refers to ASCII X3.4, which defines
> a 7-bit character set, the values 00.1F and 7F(!) as control codes, all
> others being text codes.

RFC 822 (821 is SMTP which you cite, 822 is "Standard for ARPA Internet
Text Messages") does *only* restrict the header and what is allowed there.

It says about the body of the message, quoting RFC 822, section 3.1:
"
     3.  LEXICAL ANALYSIS OF MESSAGES

     3.1.  GENERAL DESCRIPTION

          A message consists of header fields and, optionally, a body.
     The  body  is simply a sequence of lines containing ASCII charac-
     ters.  It is separated from the headers by a null line  (i.e.,  a
     line with nothing preceding the CRLF).
"

Later, it defines, *for headers only* in section 3.3:
"
CHAR        =  <any ASCII character>        ; (  0-177,  0.-127.)
"

Now apart that this defines "any ASCII character" as within the range from
0 to 127 (and not up to 255) it DOES include CTRL-Z in the definition of
"any ASCII char". And section 3.1 does clearly allow "any ASCII characters"
within the message body. This must therefor include ANY CONTROL CHARACTER.

When you quote RFC's it helps when you've read them yourself....

So using your words, when NNTP RFC 977 defines that the messages that it
transports must be RFC 822 conformant, then I don't see a reason why they
shouldn't include a CTRL-Z. It clearly allows anything from ASCII 0 up to
ASCII 127. Not that this is relevant for today where we use the full
alphabet a byte gives us, but it was always allowed.

Please note that a RFC 822 message may NOT allow CTRL-Z within any position
within a *header*. But in the body, whatever you like !

So instead of asking the world to adapt so that your tool from 1989 works,
why not upgrade your tools to something a *little* less outdated so your
tool works with the world?

> ASCII is the standard here, yes.  American Standard Code for
> Information Interchange, used by NNTP, a Transport Protocol
> that allows information to be interchanged.

Maybe but RFC 822 defines that ascii values 0 - 127 including are legal in
the message body. Case closed?

-- 
-------------------- http://NewsReader.Com/ --------------------
Usenet Newsgroup Service              New Rate! $9.95/Month 50GB
Re: NNTP and YENC
#62929
Author: Zem
Date: Tue, 07 Jan 2003 22:22
54 lines
3147 bytes
"Bart Crane" <svcrane@attbi.com> wrote in
news:p_BS9.469829$pN3.50807@sccrnsc03: 

> 
> "Zem" <invalid@invalid.invalid> wrote in message
> news:Xns92FC23A37303ZemZemZem@66.150.105.46...
>> "Bart Crane" <svcrane@attbi.com> wrote in
>> news:zyuS9.467090$pN3.50832@sccrnsc03:
>>
>> >
>> > "Zem" <invalid@invalid.invalid> wrote in message
>> > news:Xns92FBF0F662B2CZemZemZem@66.150.105.46...
>> >> The NNTP protocol defines the platform independent interaction
>> >> betweenNNTP hosts. Implementations deal with any platform specific
>> >> issues.
>> >>
>> >> 0x1A interpreted as an EOF is a well known and documented platform
>> >> specific issue. It is the responsibility of the implementations
>> >> for the affected platforms to handle.
>> >>
>> >> Your implementation is broken, not because it treats 0x1A as an
>> >> EOF, but because it does not handle its platform specific issues.
>> >
>> > There are no platform-specific issues in this program, yet if you
>> > compile and pipe the output from an nntp-server to it, you may
>> > get different results on different operating systems, depending
>> > on the data being transported.
>> >
>> > #include <stdio.h>
>> > int    main(int argc, char** argv)
>> > {
>> >     int    c;
>> >     while (EOF != (c= getchar()))
>> >         putchar(c);
>> >     return 0;
>> > }
>>
>> The difference in behavior is due to platform specific issues.
>>
>> > If your response is "use binary mode", then my response is "the
>> > spec says text-mode", and your response will be "we don't
>> > follow the spec"... and I don't have a good comeback to that!!!
>>
>> The mechanics of overcomming platform specific issues is irrelevent.
> 
> The NNTP spec defines Response Data as "textual matter".
> 
The spec doesn't define any special treatment for 0x1A. Within the
context of an NNTP stream, 0x1A is just another character. If an
implementation treats 0x1A in any special way it is in violation of NNTP.

-- 
zem.
Re: NNTP and YENC
#62937
Author: J.B. Moreno
Date: Wed, 08 Jan 2003 02:47
21 lines
2050 bytes
In article <utGS9.601902$P31.217433@rwcrnsc53>, 
 Bart Crane <svcrane@attbi.com> wrote:

> Usenet does not need NNTP, but when it does use NNTP
> servers on the public network, it should conform to the
> NNTP spec.

As any number of people have told you -- that last sentence is so
insufficient as to be outright wrong.

The NNTP spec is mainly an attempt to document existing practice -- if
you were to say "this is a flaw in the spec that should be corrected in
the next spec" then everyone would say "yep, nice catch, ataboy", but
you are saying "100,000 servers need to be updated in order to conform
to the spec", and everyone is saying "aint going to happen".

(And Russ says that the current draft corrects this mistake).

-- 
J.B. Moreno
Re: NNTP and YENC
#62939
Author: Curt Welch
Date: Wed, 08 Jan 2003 03:26
29 lines
2612 bytes
"Bart Crane" <svcrane@attbi.com> wrote:
> The way I see it is that my interpretation allows
> interoperability among all kinds of computers
> that have compatible definitions of "text-mode".

What you fail to understand is that your utility which converts between
NNTP and your "text stream" is broken.  NNTP articles now have ^Z in them
and they do _not_ mean EOF.  If your utility reads a ^Z from an NNTP strean
and writes it to he text stream, it's broken because it just told you text
utilities that the data ended when in fact it didn't.

Give up your dream that 100,000 people are going to change their habits so
you don't have to fix your broken software.

Usenet is a 'text stream', it's just not the one defined by your DOS
utility.  You have to write a Usenet "text stream" to DOS "text stream"
converter.  Not us.

Are you aware that if you were to send your DOS text utilities a Mac "text
stream" they would break as well?  Why do you expect to be able to send
them a NNTP text stream and not have problems?  Are you aware that if you
produce a DOS text stream and sent it to a Usenet system it would also be
broken?  Why do you think it's not your job to convert between an NNTP text
stream and a DOS text stream?

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: NNTP and YENC
#62943
Author: Jeffrey M. Vinocur
Date: Wed, 08 Jan 2003 04:18
71 lines
3300 bytes
In article <SRFS9.601362$%m4.184426@rwcrnsc52.ops.asp.att.net>,
Bart Crane <svcrane@attbi.com> wrote:
>
>RFC 977 refers to RFC 821 which refers to ASCII X3.4 [...]

Oy gevalt.

If you want a reference for article content, you may as well use
the latest USEFOR draft.  It's not a standard yet, but it's going
to be...

Definition of an article from 
http://www.landfield.com/usefor/drafts/draft-ietf-usefor-article-08.unpaged

----------------------------------------------------------------
Appendix B - Collected Syntax

Appendix B.1 - Characters, Atoms and Folding

   In the following syntactic rules, numbers in the left hand margin
   indicate rules taken from other documents, specifically:
     2 from  [RFC 2822] with the exception of those elements described
       therein as "obsolete";
     3 from  [RFC 2373];
     4 from  [RFC 2234];
     5 from  [RFC 2045].

   Where the number is followed by an asterisk ('*'), it indicates that
   the rule in question has been modified for the purposes of this
   standard.

[...]

   UTF8-xtra-2-head     = %xC2-DF
   UTF8-xtra-3-head     = %xE0 %xA0-BF / %xE1-EC %x80-BF /
                          %xED %x80-9F / %xEE-EF %x80-BF
   UTF8-xtra-4-head     = %xF0 %x90-BF / %xF1-F7 %x80-BF
   UTF8-xtra-5-head     = %xF8 %x88-BF / %xF9-FB %x80-BF
   UTF8-xtra-6-head     = %xFC %x84-BF / %xFD    %x80-BF
   UTF8-xtra-char       = UTF8-xtra-2-head 1( UTF8-xtra-tail ) /
                          UTF8-xtra-3-head 1( UTF8-xtra-tail ) /
                          UTF8-xtra-4-head 2( UTF8-xtra-tail ) /
                          UTF8-xtra-5-head 3( UTF8-xtra-tail ) /
                          UTF8-xtra-6-head 4( UTF8-xtra-tail )

[...]

2* text                 = %d1-9 /          ; all UTF-8 characters except
                          %d11-12 /        ; US-ASCII NUL, CR and LF
                          %d14-127 /
                          UTF8-xtra-char



[...]

Appendix B.2 - Basic Forms

[...]

   article              = 1*( header CRLF ) separator body
[...]
   body                 = *( *998text CRLF )
----------------------------------------------------------------



-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: NNTP and YENC
#62949
Author: Russ Allbery
Date: Wed, 08 Jan 2003 05:48
14 lines
1815 bytes
J B Moreno <planb@newsreaders.com> writes:

> The NNTP spec is mainly an attempt to document existing practice

Well, no, RFC 977 isn't.  It was written before anyone wrote any NNTP
software; that's the reason why there's stuff in it like SLAVE that no one
ever implemented.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: NNTP and YENC
#62951
Author: Jeremy
Date: Wed, 08 Jan 2003 06:32
48 lines
3038 bytes
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.
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".

> 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.

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.

> 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.

>> 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.

-- 
Jeremy  |  jeremy@exit109.com
Re: NNTP and YENC
#62953
Author: Frank Slootweg
Date: Wed, 08 Jan 2003 10:05
73 lines
4333 bytes
Bart Crane <svcrane@attbi.com> wrote:
> "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?

  Well, this is the deal: If you expect me/us to waste even more time on
this non-issue, then at least have the decency to answer our questions.
Mine in <news:avf11v$40f$2@support.neth.hp.com>, specifically:

Me>   *Why* don't you fix the 'problem' in the way that was suggested (by
Me> fixing/replacing sed/grep/<whatever>)?

[more irrelevant and insulting drivel deleted]

>>   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

  Repeating non-sense ad nauseum does not make it any less non-sensical.

  Please rest assured that *we* fully understand the issues and that
many of us, me included, also understand the DOS 'issues' *and* their
*solutions* (but you do not seem to be interested in solutions, only in
unproductive one-sided repetition of non-sense). FWIW, I have personally
programmed around this 'problem' on DOS, and no, it was not difficult at
all.

> Thanks for your input.

  Yeah, right! What's your excuse for keeping 19 (and counting) people
busy for no reason and without any progress? Don't you think that having
19 opponents and *no* supporters might be telling you something? Like,
that maybe, just maybe, we are ight and you are wrong?

[deleted]
Re: NNTP and YENC
#62954
Author: Dr.Ruud
Date: Wed, 08 Jan 2003 11:05
16 lines
1852 bytes
Russ Allbery skribis:
> J B Moreno:

>> The NNTP spec is mainly an attempt to document existing practice

> Well, no, RFC 977 isn't.  It was written before anyone wrote any NNTP
> software; that's the reason why there's stuff in it like SLAVE that no
> one ever implemented.

SLAVE?

-- 
Affijn, Ruud (hopes somebody here still knows how to just answer SLAVE!)


Re: NNTP and YENC
#62955
Author: Jøhnny Fävòrítê (it means "Machi...
Date: Wed, 08 Jan 2003 13:09
9 lines
1694 bytes
Curt Welch wrote:
> Give up your dream that 100,000 people are going to change their
> habits so you don't have to fix your broken software.

Likewise, could all youse guys please give up your dream that you are
going to have any effect whatsoever on the hard-headed Mister Crane and
let this stupid thread die already?  I was hoping I wouldn't have to
plonk anybody else, but I'm weakening.
Re: NNTP and YENC
#62956
Author: Faye Pearson
Date: Wed, 08 Jan 2003 13:17
12 lines
1695 bytes
Dr.Ruud wrote:

> 
> SLAVE?
> 

202 slave status noted

maybe give it priority - more likely not.

I think it became MODE SLAVE which people ignore in much the same way :)
Re: NNTP and YENC
#62957
Author: Faye Pearson
Date: Wed, 08 Jan 2003 13:28
31 lines
2662 bytes
Bart Crane wrote:

> So, back to my original request: can NNTP servers please start
> enforcing the "textual matter" clause of the nntp-spec?
> 
> If not all control codes, at least 1A?

Noone is going to change usenet for *you*.  Even if *some* people do
you can never fully take back something which has happened on
usenet, look at all the defunkt newsgroups which haven't been rmgrouped.

I believe that the aim is to make usenet even more transparent for
8bit data. RFC 977 is years out of date, quoting that to back up your
case for usenet to bend to your will is not going to help you.

It's not even a platform specific problem!  Many people are using
Windows command line applications to correctly parse newsgroup articles.

Grab yourself a copy of djgpp, egcs or cygwin (all ports of gcc) depending
on your chosen architecture from an ftp site and recompile your text
filter tools, then carry on as before.

You could solve this problem for yourself in the time it takes to
download and compile. (a good deal shorter than the length of time
people have spent going round in circles on this thread)

just my 2p.


Faye
Re: NNTP and YENC
#62962
Author: Russ Allbery
Date: Wed, 08 Jan 2003 17:08
20 lines
2131 bytes
Ruud <'t.leven.is.fijn@life.i$.great> writes:
> Russ Allbery skribis:

>> Well, no, RFC 977 isn't.  It was written before anyone wrote any NNTP
>> software; that's the reason why there's stuff in it like SLAVE that no
>> one ever implemented.

> SLAVE?

My understanding was that it was an attempt to do the sort of thing that's
now done with Xref slaving and before that was done with XREPLIC, but it
was never actually finished.  It's hard to tell, since RFC 977 gives
almost no details on it.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: NNTP and YENC
#62966
Author: Jeffrey M. Vinocur
Date: Wed, 08 Jan 2003 18:25
14 lines
1580 bytes
In article <PM0003B3B8D5F2B9F9@minion.nashville.comcast.net>,
J�hnny F�v�r�t� (it means "Machinate")  <this.is@fake.com> wrote:
>
>Likewise, could all youse guys please give up your dream that you are
>going to have any effect whatsoever on the hard-headed Mister Crane and
>let this stupid thread die already?  I was hoping I wouldn't have to
>plonk anybody else, but I'm weakening.

Why not just Kill the thread rather than specific people...

-- 
Jeffrey M. Vinocur
jeff@litech.org
Re: NNTP and YENC
#62969
Author: Curt Welch
Date: Wed, 08 Jan 2003 18:59
15 lines
1856 bytes
Pete the Plumber <none@none.invalid> wrote:
> Frank Slootweg <franks@neth.hp.com> wrote:
> Actually I'm wondering why I went to all this effort, since Bart seems
> more interested in arguing than solving his problem.

None of us would have dreamed of asking "Usenet" to change if we had
similar problems.  We would have simply changed our code so it worked an
moved on with our lives.  Building a custom set of libc routines would not
have been by first approach, but it's one of many that would work just
fine.

-- 
Curt Welch                                            http://CurtWelch.Com/
curt@kcwc.com                          Webmaster for http://NewsReader.Com/
Re: NNTP and YENC
#62971
Author: J.B. Moreno
Date: Wed, 08 Jan 2003 21:48
19 lines
1996 bytes
In article <ylel7ogpj4.fsf@windlord.stanford.edu>, 
 Russ Allbery <rra@stanford.edu> wrote:

> J B Moreno <planb@newsreaders.com> writes:
> 
> > The NNTP spec is mainly an attempt to document existing practice
> 
> Well, no, RFC 977 isn't.  It was written before anyone wrote any NNTP
> software; that's the reason why there's stuff in it like SLAVE that no one
> ever implemented.

My mistake -- it's still the case that 977 is insufficient as a
description of what should and should not be done.  It's a good
starting point, but in the real world it's no where near the whole
story.

-- 
J.B. Moreno
Re: NNTP and YENC
#62972
Author: Andrew - Supernews
Date: Wed, 08 Jan 2003 22:15
24 lines
2044 bytes
In article <1042031949.58315.0@damia.uk.clara.net>, Faye Pearson wrote:
> Dr.Ruud wrote:
>> SLAVE?
> 
> 202 slave status noted
> 
> maybe give it priority - more likely not.

200 Supernews NNRP server ready - http://www.supernews.com (posting ok)
slave
202 slave status noted (we don't support such perversions)

I forget where I stole the text (or the idea for it) from. The command has
no effect other than returning that response.

> I think it became MODE SLAVE which people ignore in much the same way :)

no, it didn't. (An older version of our server did once support MODE YANKEE,
but we won't go into that.)

-- 
Andrew, Supernews
http://www.supernews.com - individual and corporate NNTP services
Re: NNTP and YENC
#62978
Author: greg andruk
Date: Thu, 09 Jan 2003 06:43
15 lines
2360 bytes
Andrew - Supernews wrote:

> 200 Supernews NNRP server ready - http://www.supernews.com (posting ok)
> slave
> 202 slave status noted (we don't support such perversions)

> I forget where I stole the text (or the idea for it) from.

That's out of the reference server.  

FWIW, nntpxfer from the same distribution does send a SLAVE "to get 
priority" right before running a NEWNEWS request.  Somewhere in Brian 
Kantor's braindumps to the nntpext list is a note that early on, it was 
thought that sucking would be the most common way to transfer articles.
Page 2 of 3 • 133 total messages
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads