🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #56252

Re: slrn y2k bug?

#56252
From: Russ Allbery
Date: Sun, 02 Jan 2000 00:00
27 lines
2189 bytes
J Moreno <planb@newsreaders.com> writes:
> Russ Allbery <rra@stanford.edu> wrote:

>> That's an INN bug.  It's reading 00 as 1900 instead of 2000 like it
>> should.  The NEWGROUPS command itself has a Y2K problem in the
>> specification, unfortunately, as the wire protocol calls for a
>> two-digit year, so news clients have to send 00 for 2000 and it's the
>> responsibility of the server to interpret that correctly.

> I don't think that's a Y2k bug, but rather a Y2.1k bug (the spec
> actually says to interpret 00 as 2000, which is obviously incorrect).
> Still, if you ignore that it's not hard to write it so that a 2 digit
> year works just fine from now on (as long as you aren't more than a
> century out of date), if the year is larger than the current year assume
> it came from the last century.

One can just fix the server to support four-digit years as well, and
eventually we can stop dealing with the issue.  *wry grin*  I believe INN
has supported four digit years here for a little while, and at least some
of the C News patches floating around support them as well.  It may be at
the point where clients could send a four digit year and then retry with a
two-digit year iff they get a syntax error.

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

Technical Details
Message-ID: <ylbt733heo.fsf@windlord.stanford.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn86sblt.poo.soma@amanda.dorsai.org> <84ledf$7q0$1@panix7.panix.com> <slrn86sund.7p1.davis@aluche.mit.edu> <slrn86timk.68q.boojum@localhost.localdomain> <yl3dsge0kg.fsf@windlord.stanford.edu> <1e3szek.esyit315td5czN%planb@newsreaders.com>

Show Full Headers
Complete Article Headers
Message-ID: <ylbt733heo.fsf@windlord.stanford.edu>
Subject: Re: slrn y2k bug?
Date: Sun, 02 Jan 2000 00:00:00 +0000
From: Russ Allbery <rra@stanford.edu>
References: <slrn86sblt.poo.soma@amanda.dorsai.org> <84ledf$7q0$1@panix7.panix.com> <slrn86sund.7p1.davis@aluche.mit.edu> <slrn86timk.68q.boojum@localhost.localdomain> <yl3dsge0kg.fsf@windlord.stanford.edu> <1e3szek.esyit315td5czN%planb@newsreaders.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 567639873
Content-Type: text/plain; charset=us-ascii
Organization: The Eyrie
Mime-Version: 1.0
User-Agent: Gnus/5.0802 (Gnus v5.8.2) XEmacs/21.1 (Biscayne)
Newsgroups: news.software.readers