Subject: pkg/13175: Y2K bug in titrax's sumtitra
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jarle@uninett.no>
List: netbsd-bugs
Date: 06/12/2001 11:37:14
>Number:         13175
>Category:       pkg
>Synopsis:       Y2K bug in titrax's sumtitra
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun 12 02:36:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Jarle Greipsland
>Release:        1.5.1_BETA2 2001-06-06
>Organization:
UNINETT
>Environment:
	
System: NetBSD festningen.uninett.no 1.5.1_BETA2 NetBSD 1.5.1_BETA2 (FESTNINGEN) #2: Thu Jun 7 18:01:40 CEST 2001 root@festningen.uninett.no:/usr/src/sys/arch/i386/compile/FESTNINGEN i386


>Description:
sumtitra prints year as 19$year, which causes lines like
	Hours worked for week 23 19101
to be printed.
	
>How-To-Repeat:
Run the sumtitra command on a week's worth of project data:
% sumtitra -adjust -round
	
>Fix:
	
Apply patch.

--- sumtitra.orig	Sat Jun  2 23:48:40 2001
+++ sumtitra	Tue Jun 12 11:08:13 2001
@@ -150,7 +150,7 @@
 } else {
    print "$name\n";
 }
-print $word{"banner"}, " $week 19$year\n";
+print $word{"banner"}, " $week ", 1900+$year, "\n";
 
 printf "%-${projwidth}.${projwidth}s%6s!", $word{"project"}, $word{"tot"};
 for ($startday..$endday) {
>Release-Note:
>Audit-Trail:
>Unformatted: