I can confirm that the weekend feature of calendar (namely, he should report events from saturday, sunday, and monday, on a friday) does not work.

The patch proposed by the bug reporter does not make sense, however, and is merely based on a diff between calendar.c and OpenBSD's calendar.s that does not seem to have anything to do with fridays.

In day.c we see the following:

day.c-171-      /* Friday displays Monday's events */
day.c:172: offset = tp->tm_wday == 5 ? lookahead + weekend : lookahead;

For some reason the value of "weekend", an external variable set to 2 in calendar.c, is not transferred properly in day.c ???

Best regards,

Jan Van den Bussche


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to