🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #56613

Re: [yenc] yydecode -- reimplementation of decoder

#56613
From: Neeber
Date: Mon, 18 Feb 2002 10:25
47 lines
3087 bytes
On 18 Feb 2002 00:59:47 GMT, Liyang Hu <newsgroups@nerv.cx> wrote:

>One shortcoming of the current yEnc format is that you don't know
>how many parts there are in the set ... each part only comes tagged
>with the part number, but not the total number of parts. So say the
>files I downloaded is missing the last part: Any suggestions as to
>what the correct behaviour should be?

I think it's important to discern between expectations of the decoder
and expectations of the application using the decoder. At this level
of separation, it helps to consider that anything not explicitly or
implicitly described as decoder behavior by the spec as 'Application
Level' behavior. That is, the app can do whatever it wants with
bad/missing parts, which can be one of the following options:

1. Not decode anything unless it has a complete valid set
2. Decode to a temporary file and record what's missing (the reference
implementation does this with .tmp and .dec files) for future
reference.
3. Something magical. Actually, I can't think of a third option.

Option 2 would be the 'Nice Thing To Do,' but I reckon the spec would
get too bogged down if it had to worry about requirements for these
niggling details. Suggestions/reccomendations is the best we can hope
for. The spec can recommend a minimum behavior (e.g. 'Don't crash on
error, just report it in a uniform and predictable way'), at most.

>
>Any estimate on the ETA for these test suites?

Done. It's 2a.m., so I don't exclude the possibility that I missed a
case. Do notify me if there are any problems arising from the use of
the test suite, as I am pretty darn sure my code isn't ready to handle
this test suite (someone want to come up with a sexier name than 'yEnc
test suite'?). In other words, I haven't tested the test suite fully.
Caveat Hax0r.

The files are zipped for your protection, since some of them contain
blatantly illegal characters in the datastream (\r, \r, \n, NUL, TAB,
etc.)

http://www204.pair.com/~cesium/dev/

Cheers.


Technical Details
Message-ID: <31l17ugmqnq0b8i3scon8hgjrbgavscj7h@4ax.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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.novia.net.MISMATCH!novia!novia!sequencer.newscene.com!not-for-mail
References: <a4i6q4$kr8$1@pegasus.csx.cam.ac.uk> <41299.g22205@archiver.winews.net> <0vct6ugbfkb43j1p6168m37qoml0ahtej9@4ax.com> <a4n4gp$5c6$1@pegasus.csx.cam.ac.uk> <drpv6u0kmvn0fo53r6sj281m2fqct8te97@4ax.com> <a4pjm3$4pg$1@pegasus.csx.cam.ac.uk>

Show Full Headers
Complete Article Headers
Message-ID: <31l17ugmqnq0b8i3scon8hgjrbgavscj7h@4ax.com>
Subject: Re: [yenc] yydecode -- reimplementation of decoder
Date: Mon, 18 Feb 2002 10:25:07 +0000
From: Neeber <a110y2@hotmail.com>
References: <a4i6q4$kr8$1@pegasus.csx.cam.ac.uk> <41299.g22205@archiver.winews.net> <0vct6ugbfkb43j1p6168m37qoml0ahtej9@4ax.com> <a4n4gp$5c6$1@pegasus.csx.cam.ac.uk> <drpv6u0kmvn0fo53r6sj281m2fqct8te97@4ax.com> <a4pjm3$4pg$1@pegasus.csx.cam.ac.uk>
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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.novia.net.MISMATCH!novia!novia!sequencer.newscene.com!not-for-mail
Newsgroups: news.software.nntp
Lines: 46
X-Newsreader: Forte Agent 1.8/32.553 trialware
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit