From nobody@FreeBSD.org  Tue May 15 02:56:50 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id CE8B016A400
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 May 2007 02:56:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id BF6D213C447
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 May 2007 02:56:50 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l4F2uo8E007691
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 15 May 2007 02:56:50 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l4F2pnrf091466;
	Tue, 15 May 2007 02:51:49 GMT
	(envelope-from nobody)
Message-Id: <200705150251.l4F2pnrf091466@www.freebsd.org>
Date: Tue, 15 May 2007 02:51:49 GMT
From: Andrew Lankford<andrew.lankford@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: calendar(1) isn't working right.
X-Send-Pr-Version: www-3.0

>Number:         112675
>Category:       misc
>Synopsis:       calendar(1) isn't working right.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue May 15 03:00:10 GMT 2007
>Closed-Date:    Tue May 15 18:06:13 GMT 2007
>Last-Modified:  Tue May 15 18:06:13 GMT 2007
>Originator:     Andrew Lankford
>Release:        6.2-STABLE
>Organization:
>Environment:
FreeBSD bogushost2 6.2-STABLE FreeBSD 6.2-STABLE #1: Fri May  4 01:20:15 EDT 2007     root@bogushost2:/usr/obj/usr/src/sys/ARL6I386  i386
>Description:
$ date
Mon May 14 22:37:05 EDT 2007
$ cal
      May 2007
Su Mo Tu We Th Fr Sa
       1  2  3  4  5
 6  7  8  9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31

$ calendar -B 7
May 13* Mother's Day (2nd Sunday of May)
May 13* Memorial Day in USA (Last Monday of May)


May 13th is not the last day in May, but:
$ calendar -t 13.5.2007
May 13* Mother's Day (2nd Sunday of May)
$ calendar -t 27.5.2007
May 28* Memorial Day in USA (Last Monday of May)
May 27* Pentecost (Whitsunday)
May 28* Whitmonday
May 28* Rogation Sunday
 
$ grep Memorial /usr/share/calendar/calendar.usholiday
05/MonLast      Memorial Day in USA (Last Monday of May)

>How-To-Repeat:
Try calendar as shown above.  /usr/bin/calendar and /usr/share/calendar/* should all be freshly built from STABLE source on my system.
>Fix:

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: remko 
State-Changed-When: Tue May 15 18:06:11 UTC 2007 
State-Changed-Why:  
duplicate of 112674 

http://www.freebsd.org/cgi/query-pr.cgi?pr=112675 
>Unformatted:
