Your message dated Tue, 25 Dec 2007 10:47:02 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#369919: fixed in plan 1.10.1-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: plan
Version: 1.9-6
Severity: normal
Tags: patch

Hello,

There is a bug when using when using "last weekday in month" inside
bracketed expressions in holiday file.  

For example, the following holiday entry generally returns the last
tuesday in january (instead of february), and sometimes (e.g. in 2005)
the first tuesday of february (instead of the last one).

cyan "FOO" on 1.1. plus [last tuesday in february] days

The next patch corrects the problem.

--- plan-1.9.orig/src/parser.y
+++ plan-1.9/src/parser.y
@@ -98,9 +98,10 @@
                                                                ($1, $2); }
        | WDAY pexpr pexpr                      { $$ = day_from_wday($3, $1,
                                                        $2 == -1 ? -1 : 0); }
-       | pexpr WDAY IN month                   { int d=day_from_monthday($4,1);
+       | pexpr WDAY IN month                   { int d=day_from_monthday
+                                                       ($4 + ($1 == 999),1);
                                                  $$ = $1 == 999
-                                                  ? day_from_wday(d+1,$2,-1)
+                                                  ? day_from_wday(d,$2,-1)
                                                   : day_from_wday(d,$2,$1-1);}
        ;

Regards,

        Arnaud Giersch


--- End Message ---
--- Begin Message ---
Source: plan
Source-Version: 1.10.1-1

We believe that the bug you reported is fixed in the latest version of
plan, which is due to be installed in the Debian FTP archive:

netplan_1.10.1-1_i386.deb
  to pool/main/p/plan/netplan_1.10.1-1_i386.deb
plan_1.10.1-1.diff.gz
  to pool/main/p/plan/plan_1.10.1-1.diff.gz
plan_1.10.1-1.dsc
  to pool/main/p/plan/plan_1.10.1-1.dsc
plan_1.10.1-1_i386.deb
  to pool/main/p/plan/plan_1.10.1-1_i386.deb
plan_1.10.1.orig.tar.gz
  to pool/main/p/plan/plan_1.10.1.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Petter Reinholdtsen <[EMAIL PROTECTED]> (supplier of updated plan package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Tue, 25 Dec 2007 11:36:39 +0100
Source: plan
Binary: netplan plan
Architecture: source i386
Version: 1.10.1-1
Distribution: unstable
Urgency: low
Maintainer: Petter Reinholdtsen <[EMAIL PROTECTED]>
Changed-By: Petter Reinholdtsen <[EMAIL PROTECTED]>
Description: 
 netplan    - network server for `plan'
 plan       - X/Motif day planner (dynamically compiled with LessTif2)
Closes: 369919 369927
Changes: 
 plan (1.10.1-1) unstable; urgency=low
 .
   * New upstream release.
     - Fix bug in holiday file parser (Closes: #369919).
     - Fix wrong Mother's day definition in French holiday file
       (Closes: #369927).
   * New patch 62_no_hardcoded_wordlength to remove -m32 from build
     flags, to avoid build error on alpha and mips.
Files: 
 9a845b9aed17a2433b955be406d14ec0 671 misc optional plan_1.10.1-1.dsc
 0de80b5074ca77b20801ed689e82a5a8 462560 misc optional plan_1.10.1.orig.tar.gz
 cd815f4c0e0d812d92cbf38f56a737a1 29661 misc optional plan_1.10.1-1.diff.gz
 d748635f59ad5540f4b97a60a6d44a0d 354592 misc optional plan_1.10.1-1_i386.deb
 cdc58d589d86ce0920e3597812499eda 51652 misc optional netplan_1.10.1-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHcN1x20zMSyow1ykRAmtiAKDTLAEP6jOCfif2esg+9KR4UXlw9wCgljZM
xbrp9krl0ZMNHi10JJfn8ro=
=jzzl
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to