From nobody@FreeBSD.ORG  Wed Jan 19 08:07:34 2000
Return-Path: <nobody@FreeBSD.ORG>
Received: by hub.freebsd.org (Postfix, from userid 32767)
	id E3A941529D; Wed, 19 Jan 2000 08:07:33 -0800 (PST)
Message-Id: <20000119160733.E3A941529D@hub.freebsd.org>
Date: Wed, 19 Jan 2000 08:07:33 -0800 (PST)
From: emon@kuis.kyoto-u.ac.jp
Sender: nobody@FreeBSD.ORG
To: freebsd-gnats-submit@FreeBSD.org
Subject: y2k problem in troff (e.g. 'man hosts.equiv')
X-Send-Pr-Version: www-1.0

>Number:         16207
>Category:       bin
>Synopsis:       y2k problem in troff (e.g. 'man hosts.equiv')
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    asmodai
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 19 08:10:01 PST 2000
>Closed-Date:    Mon Mar 27 11:53:36 PST 2000
>Last-Modified:  Mon Mar 27 11:54:19 PST 2000
>Originator:     KOMURA Takaaki
>Release:        3.3-RELEASE
>Organization:
Kyoto University (student)
>Environment:
FreeBSD beat.kuis.kyoto-u.ac.jp 3.3-RELEASE FreeBSD 3.3-RELEASE #0: Thu Sep 16 23:40:35 GMT 1999     jkh@highwing.cdrom.com:/usr/src/sys/compile/GENERIC  i386
>Description:
When I invoked 'man host.equiv' at January 20 2000,
I found following in the man page:
----
FreeBSD                        January 20, 1900                              1
----
>How-To-Repeat:
# rm /usr/share/man/cat5/hosts.equiv
% man hosts.equiv

The following may be printed on the last of man page:
----
FreeBSD                        January 20, 1900                              1
----
>Fix:
/usr/src/contrib/groff/troff/input.cc, line 5546

-  set_number_reg("yr", int(tt->tm_year)%100);
+  set_number_reg("yr", int(tt->tm_year));


>Release-Note:
>Audit-Trail:

From: emon@kuis.kyoto-u.ac.jp
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: bin/16207: y2k problem in troff (e.g. 'man hosts.equiv')
Date: Wed, 19 Jan 2000 08:07:33 -0800 (PST)

 >Number:         16207
 >Category:       bin
 >Synopsis:       y2k problem in troff (e.g. 'man hosts.equiv')
 >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:   Wed Jan 19 08:10:01 PST 2000
 >Closed-Date:
 >Last-Modified:
 >Originator:     KOMURA Takaaki
 >Release:        3.3-RELEASE
 >Organization:
 Kyoto University (student)
 >Environment:
 FreeBSD beat.kuis.kyoto-u.ac.jp 3.3-RELEASE FreeBSD 3.3-RELEASE #0: Thu Sep 16 23:40:35 GMT 1999     jkh@highwing.cdrom.com:/usr/src/sys/compile/GENERIC  i386
 >Description:
 When I invoked 'man host.equiv' at January 20 2000,
 I found following in the man page:
 ----
 FreeBSD                        January 20, 1900                              1
 ----
 >How-To-Repeat:
 # rm /usr/share/man/cat5/hosts.equiv
 % man hosts.equiv
 
 The following may be printed on the last of man page:
 ----
 FreeBSD                        January 20, 1900                              1
 ----
 >Fix:
 /usr/src/contrib/groff/troff/input.cc, line 5546
 
 -  set_number_reg("yr", int(tt->tm_year)%100);
 +  set_number_reg("yr", int(tt->tm_year));
 
 
 >Release-Note:
 >Audit-Trail:
 >Unformatted:
 
 
 To Unsubscribe: send mail to majordomo@FreeBSD.org
 with "unsubscribe freebsd-bugs" in the body of the message
 

From: Bill Fenner <fenner@research.att.com>
To: emon@kuis.kyoto-u.ac.jp, chuckr@freebsd.org
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: bin/16207: y2k problem in troff (e.g. 'man hosts.equiv')
Date: Thu, 20 Jan 2000 17:46:10 -0800

 Also see PRs gnu/4930, gnu/8321, bin/9502, and the *roff documentation
 (which documents that yr is the last 2 digits of the year), and groff
 v1.15 (which keeps it years since 1900 and adds Y2K fixes to the mandoc
 and me macros based upon this.  ms didn't need fixing and orig_me
 (from /usr/src/share/me) is not part of groff but also expects yr to be
 years-since-1900).
 
 \(yr holding "the last 2 digits of the year" is broken as designed,
 since then there is no way for *roff macros to know the century.
 The fix for bin/9502 made FreeBSD incompatible with everything else;
 I think it should be reverted.
 
   Bill
 
Responsible-Changed-From-To: freebsd-bugs->asmodai 
Responsible-Changed-By: asmodai 
Responsible-Changed-When: Sun Jan 30 12:54:04 PST 2000 
Responsible-Changed-Why:  
I am working on this. 
State-Changed-From-To: open->closed 
State-Changed-By: asmodai 
State-Changed-When: Mon Mar 27 11:53:36 PST 2000 
State-Changed-Why:  
This was fixed a while ago. 
>Unformatted:
