From owner-freebsd-bugs@FreeBSD.ORG Tue Jun 7 16:20:09 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8AAB61065670 for ; Tue, 7 Jun 2011 16:20:09 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7B8828FC15 for ; Tue, 7 Jun 2011 16:20:09 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p57GK9So082769 for ; Tue, 7 Jun 2011 16:20:09 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p57GK90m082768; Tue, 7 Jun 2011 16:20:09 GMT (envelope-from gnats) Date: Tue, 7 Jun 2011 16:20:09 GMT Message-Id: <201106071620.p57GK90m082768@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jaakko Heinonen Cc: Subject: Re: bin/155873: calendar recurring date not working X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jaakko Heinonen List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Jun 2011 16:20:09 -0000 The following reply was made to PR bin/155873; it has been noted by GNATS. From: Jaakko Heinonen To: edwin@FreeBSD.org Cc: Ivana Belgers , bug-followup@FreeBSD.org Subject: Re: bin/155873: calendar recurring date not working Date: Tue, 7 Jun 2011 19:18:06 +0300 On 2011-06-06, Jaakko Heinonen wrote: > On 2011-03-22, Ivana Belgers wrote: > > Until recently the following line in the .calendar file > > delivered the expected result: > > sat+3 Every third saturday of each month > > > > This worked in 8.1-STABLE installed on 2 august 2010. > > Now, since we upgraded to 8.2-STABLE on march 25, this does not work > > anymore, but generates the following message: > > % calendar > > Unprocessed: > > ------- > > date: |Sat+3| > > flags: 10a - dayofweek modifierindex variable > > modifierindex: |+3| > > dayofweek: |Sat| (6) > > Ignored: Sat+3 Every third saturday of each month > > Seems that the behavior changed in r205821: > > ------------------------------------------------------------------------ > r205821 | edwin | 2010-03-29 09:49:20 +0300 (Mon, 29 Mar 2010) | 12 lines > > Long awaited update to the calendar system: > > - Repeating events which span multiple years (because of -A, -B or > just the three days before the end of the year). > > - Support for lunar events (full moon, new moon) and solar events > (equinox and solstice, chinese new year). Because of this, the > options -U (UTC offset) and -l (longitude) are available to > compensate if reality doesn't match the calculated values. > > MFC after: 1 month > > ------------------------------------------------------------------------ Looking at the code I can confirm that r205821 broke this. The new function indextooffset() doesn't parse correctly modifierindexes such as +3 and -3. -- Jaakko