Bug 15932

Summary: /usr/bin/cpp behavioral change breaks calendar(1)
Product: Base System Reporter: Jos.Backus <Jos.Backus>
Component: binAssignee: David E. O'Brien <obrien>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Jos.Backus 2000-01-06 09:20:00 UTC
	calendar(1) runs /usr/bin/cpp to preprocess its data files. Apparently
	some recent change in /usr/bin/cpp broke parsing of these files, in
	particular single quotes yield syntax errors (it seems cpp wants to
	interpret them as C-type strings).

Fix: Add -traditional to the cpp commandline:

hal:/usr/src/usr.bin/calendar# diff -u io.c.orig io.c
How-To-Repeat: 
hal:~% calendar |& head
In file included from :3:
/usr/share/calendar/calendar.birthday:93: unterminated character constant
/usr/share/calendar/calendar.birthday:103: unterminated character constant
/usr/share/calendar/calendar.birthday:117: unterminated character constant
/usr/share/calendar/calendar.birthday:170: unterminated character constant
/usr/share/calendar/calendar.birthday:182: unterminated character constant
/usr/share/calendar/calendar.birthday:225: unterminated character constant
/usr/share/calendar/calendar.birthday:232: unterminated character constant
In file included from :4:
/usr/share/calendar/calendar.christian:26: unterminated character constant
Comment 1 Brian Somers freebsd_committer freebsd_triage 2000-01-08 10:03:08 UTC
Responsible Changed
From-To: freebsd-bugs->obrien

This belongs to our compiler guru :-) 
Comment 2 David E. O'Brien freebsd_committer freebsd_triage 2000-01-10 06:25:13 UTC
State Changed
From-To: open->closed