From owner-freebsd-bugs Thu Jan 31 17:20: 8 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id ADA8B37B416 for ; Thu, 31 Jan 2002 17:20:01 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g111K1F71283; Thu, 31 Jan 2002 17:20:01 -0800 (PST) (envelope-from gnats) Date: Thu, 31 Jan 2002 17:20:01 -0800 (PST) Message-Id: <200202010120.g111K1F71283@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Mike Makonnen Subject: Re: bin/34497: calendar(1) does not understand calendars Reply-To: Mike Makonnen Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/34497; it has been noted by GNATS. From: Mike Makonnen To: David Taylor Cc: bug-followup@freebsd.org Subject: Re: bin/34497: calendar(1) does not understand calendars Date: Thu, 31 Jan 2002 17:14:48 -0800 On Thu, 31 Jan 2002 13:30:02 -0800 (PST) David Taylor wrote: > The code is rather weird and obfusciated, but I managed to create a fix > for the specific problem reported, but that doesn't stop '2002-01-33' > being misinterpreted, along with other problems that cropped up.... Hah! That's an understatement! Calendar(1) could be used as a prime example of how *not* to write code. > > However, I don't have enough time to write a calendar(1) replacement from > scratch.. There's also a few other bugs in the code that I have come accross (i.e. - it can't handle 'the first Thursday of every month') and which I thought about fixing, but I've been putting it off because of the time it would take. I'm in agreement with you: any way you look at it the *only* solution IMO is to rewrite the damned thing. Now that I know others would be interested in getting it fixed I'm willing to go ahead and do that if a committer is willing to take a look at my code. cheers, mike makonnen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message