On Fri, Dec 31, 1999 at 07:59:14PM -2300, Yves ESVAN wrote:
> it appears that mtrack is Y2k ok , and SatTrack is not ok .
Rob Janssen posted this patch to the rec.radio.amateur.space newsgroup:
I haven't tried it yet.
Hamish
>From [EMAIL PROTECTED] Sun Jan 2 11:42:26 2000
Path:
news.labyrinth.net.au!news2.melbpc.org.au!news.mel.connect.com.au!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newsfeeds.belnet.be!news.belnet.be!news-x.support.nl!News-Service!knoware.nl!nomail
From: [EMAIL PROTECTED] (Rob Janssen)
Newsgroups: rec.radio.amateur.space
Subject: Re: Instant Track
Date: Sat, 1 Jan 2000 13:30:56 GMT
Organization: PE1CHL
Lines: 47
Message-ID: <[EMAIL PROTECTED]>
References: <84jjqm$16sh$[EMAIL PROTECTED]>
NNTP-Posting-Host: 195.64.48.20
X-Newsreader: slrn (0.9.5.2 UNIX)
Cache-Post-Path: [EMAIL PROTECTED]
X-Cache: nntpcache 2.3.3 (see http://www.nntpcache.org/)
Xref: news.labyrinth.net.au rec.radio.amateur.space:11320
Hamish Moffatt <[EMAIL PROTECTED]> wrote:
>Carl R. Stevenson <[EMAIL PROTECTED]> wrote:
>> If anyone has experience-based recomendations on either Win32
>> or Linux sat trcking programs, I'd appreciate a comment and a URL
>> to the download site.
>There's a few on linux. SatTrack is reasonable; the newer versions
>are commercial but the 3.x version is free for amateur use. Unfortunately
>it appears to be non-Y2K compliant, having tried to use it this morning.
>The source is available so I might try to fix it later.
Here is the only bug I found sofar. It seems to try hard at Y2K
compatability (essentially using the range 1950-2049) but there is
a routine that calcs the daynumber and starts from a vaguely-defined
year number (sometimes a 4-digit, sometimes a 2-digit value).
This patch makes it run again today. I hope (and believe) it also
works when year-00 keps are loaded.
Rob
diff -cr SatTrack-orig/src/sattrack/sattime.c SatTrack/src/sattrack/sattime.c
*** SatTrack-pe1chl/src/sattrack/sattime.c Sat Jan 4 22:19:08 1997
--- SatTrack/src/sattrack/sattime.c Sat Jan 1 14:19:51 2000
***************
*** 269,275 ****
if (gdnY < 50) /* allow 4 or 2 digit year specifications */
gdnY += 2000;
else
! if (gdnY < 100)
gdnY += 1900;
result = (long) ((((gdnY-1901)*1461) >> 2) + monthDays[gdnM-1] + gdnD+365);
--- 269,275 ----
if (gdnY < 50) /* allow 4 or 2 digit year specifications */
gdnY += 2000;
else
! if (gdnY < 200)
gdnY += 1900;
result = (long) ((((gdnY-1901)*1461) >> 2) + monthDays[gdnM-1] + gdnD+365);
--
+----------------------------------+--------------------------------------+
| Rob Janssen [EMAIL PROTECTED] | WWW: http://www.knoware.nl/users/rob |
| AMPRnet: [EMAIL PROTECTED] | AX.25 BBS: PE1CHL@PI8WNO.#UTR.NLD.EU |
+----------------------------------+--------------------------------------+
--
Hamish Moffatt Mobile: +61 412 011 176 [EMAIL PROTECTED]
Rising Software Australia Pty. Ltd. http://www.risingsoftware.com/
Phone: +61 3 9894 4788 Fax: +61 3 9894 3362 USA: 1 888 667 7839