Article View: news.software.nntp
Article #62799Re: NNTP and YENC
From: Curt Welch
Date: Sun, 05 Jan 2003 02:58
Date: Sun, 05 Jan 2003 02:58
121 lines
6328 bytes
6328 bytes
"Bart Crane" <svcrane@attbi.com> wrote: > It was also > suggested that I email yenc.org, but I had already done so and > received no response. It is a ridiculously small thing, a 1-byte change > to the encoder-spec, and no change on the decoder. Hey, I talk with Juergen all the time. And I asked him to fix the link to my newsreader.com service on the yenc.org site which has been broken since it was added and he's not gotten that done either. We are all busy, some things are more important than others. Your suggestion that the yEnc spec be changed to say all encoders should escape ^Z is questionable since it's only a minor problem for some people (you) and would cause a size increase for _everything_ posted to Usenet in yEnc. How much does everyone not having problems with ^Z really owe you? > The problem is that NNTP servers are forwarding YENC-encoded > data, but this data includes control-characters, one of which, 0x1A, > is interpreted within text-streams on DOS/Windows to mean "End > Of File." > > This causes sed and grep to terminate early. You can imagine my > consternation. > > So, I am posting here, so as to ask those who actually run news > servers, would you please reject any article that is posted to your > server that contains ANSI-defined control-characters (hex 00 to 1F and > FF), except those defined by the NNTP spec as allowed (CR, LF, TAB)? You are funny. So we should just reject all yEnc articles? :) You do understand that they all contain large numbers of control characters don't you? We have been working for years to get all of Usenet to transport 8bit data. You are not going to get anywone to reject articles with control characters - not even ^Z alone. > Or, if that is too onerous as a first step, could you please do so if the > article contains 0x1A??? Or, could you forcibly insert into the subject: > header a key phrase so I can grep -v those articles out of the listing? Nope. > That may sound extreme, but, RFC 977 says Good try. Nope. > Without this concept, text-processing utilities would need special-case > coding to account for how different operating systems implement > text-streams. They do have special special-case coding. What do you think "rb" and "wb" is? > With this concept, one can write newsreader software in > portable C and expect it to compile and function properly on any > platform. There's no such thing as "portable C". I've been writing in it for 25 years and have writen code that ran on over 250 different versions of Unix and believe me, it's not portable. > That has been my expectation and experience, until now. You need to fix your code. Don't ask the rest of the world to fix there's because you can't program. Nobody puts ^Z into files anymore to mean end-of-file. If the stupid libc routines you use can't read text files with ^Z in them, write your own that can. If for some god-forsaken reaon you are trying to store Usenet articles in old CPM style "files" which have a length which is a multiple of 128 bytes instead of having a modern byte length, then you need to encode the data as you store it and escape the ^Z in the data to something else. NNTP data is 8 bit binary data now. Get used to that. It's only going to get worse. > This is not an 7- vs. 8-bit issue. No matter the number of bits in > a byte, if the value is in the range of 0..31 or is -1, ANSI defines it > to be control character. In a text-stream, a "control character" may > be interpreted specially. The NNTP authors explicitly allow only > two control-characters, CR and LF, and are vague on TAB. For > good reason, because other control characters have other meanings > on other operating systems, such as 1A == End Of File. Sorry, the NNTP specs have nothing to do with Usenet. The people that write and run news servers are what control how their segement of Usenet works and nobody is going to start blocking ^Z now. > I would very much like to return to treating the output from NNTP > servers as "textual". Sorry. Those days are gone. Fix your code to deal with Usenet how it is or don't call your code "usenset software". > That was the original intent, that was the > existing practice, and of all of the reasons for using YENC, none > preclude continuing that practice. > It is a dark day indeed if a network protocol can be introduced and > adopted that is so clearly in violation of multiple pre-existing > standards, and does so in such a way that breaks pre-existing systems > based on those standards. Okay, you got me: it breaks one pre- > existing system. But that system is mine!!! What on earth is so hard about fixing your system so it works? BTW, the last time you suggested this I changed my yEnc encoders so they escape ^Z for you. But don't ask me to go any further. The odds of you getting yEnc changed, and getting everyone out there to upgrade to a recent version of yEnc which escapes ^Z is about zero. Your only option is to figure out how to make your code work even if ^Z is in the data. -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20030104215829.905$Rh@newsreader.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!cyclone.bc.net!snoopy.risq.qc.ca!chi1.webusenet.com!rip!news.webusenet.com!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<BXLR9.432835$pN3.48082@sccrnsc03>Show Full Headers
Complete Article Headers
Message-ID: <20030104215829.905$Rh@newsreader.com>
Subject: Re: NNTP and YENC
Date: Sun, 05 Jan 2003 02:58:30 +0000
From: curt@kcwc.com (Curt Welch)
References: <BXLR9.432835$pN3.48082@sccrnsc03>
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!cyclone.bc.net!snoopy.risq.qc.ca!chi1.webusenet.com!rip!news.webusenet.com!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com emLwCJb@_i8v.CUvQ8H8YmW8sKB@wGw_XO5DCFCEdtOT1+
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 120