bin/186294: calendar' preprocessor process comments

Romain Tartiere romain at FreeBSD.org
Fri Jan 31 08:50:00 UTC 2014


>Number:         186294
>Category:       bin
>Synopsis:       calendar' preprocessor process comments
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 31 08:50:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Romain Tartiere
>Release:        FreeBSD 10.0-STABLE amd64
>Organization:
>Environment:
System: FreeBSD marvin.blogreen.org 10.0-STABLE FreeBSD 10.0-STABLE #1 r261284: Thu Jan 30 13:25:27 CET 2014 root at marvin.blogreen.org:/usr/obj/usr/src/sys/MARVIN amd64

>Description:

After updating to 10.0, calendar now shows events it did not displayed
in 9.2.

>How-To-Repeat:

My ~/.calendar/calendar appears to have a commented-out comment:

---------------------------------- 8< ----------------------------------
/*
 * #include <calendar.computer>
 */

01 Jan	Sample entry
---------------------------------- 8< ----------------------------------

When I ask events for a particular date, events from this included
calendar.computer are unexpectedly returned:

---------------------------------- 8< ----------------------------------
% calendar -t 01.01
 1 jan  Sample entry
 1 jan  The Epoch (Time 0 for UNIX systems, Midnight GMT, 1970)
 1 jan  AT&T officially divests its local Bell companies, 1984
---------------------------------- 8< ----------------------------------

>Fix:

No fix yet, but a workaround is to #define a macro checked in the
included calendar
---------------------------------- 8< ----------------------------------
/*
 * #define _calendar_computer_
 * #include <calendar.computer>
 */
---------------------------------- 8< ----------------------------------



>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list