Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Jan 2000 07:02:47 +0900
From:      OKAZAKI Tetsurou <okazaki@be.to>
To:        asmodai@FreeBSD.ORG
Cc:        superboy@LSH.org, freebsd-bugs@FreeBSD.ORG
Subject:   Re: gnu/16045: groff 1.11 Y2K bug
Message-ID:  <863ds3c5iw.wl@dolphin.be.to>
In-Reply-To: In your message of "Wed, 12 Jan 2000 05:44:03 -0800 (PST)" <200001121344.FAA30558@freefall.freebsd.org>
References:  <200001121344.FAA30558@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
> Synopsis: groff 1.11 Y2K bug

The originator of this PR wanted to say is there are still 
inconsistencies about the handling of the number register `yr'
even after bin/9502 closed.

We modified troff/input.cc so that the `yr' value can be
the "last 2 digits of this year" after 2000. But some macros
assume that the `yr' has the value of the "year minus 1900."

/usr/share/tmac/mdoc/doc-common:.nr Yr \n(yr+1900
/usr/share/tmac/tmac.e:.nr y2 \n(yr%100
/usr/share/tmac/tmac.e:.nr y4 \n(yr+1900
/usr/share/tmac/tmac.orig_me:.ds td \*(mo \n(dy, \n(yr+1900
/usr/share/tmac/tmac.s:.nr *year \n[yr]+1900

GNU groff team changed their documentation since groff-1.12,
but doesn't touch their implementation of the `yr' register.

	\en(y2  R       year (last two digits only)
	\en(y4  R       year (all digits)
	\en(yr  R\(sc   year minus 1900
                                        [from doc/meref.me]

How-To-Repeat:-)

	% cd /usr/src/contrib/groff/doc
	% groff -me -Tascii meref.me |less -p td
	
	\*(td          Today's date, directly printable.  The date is  of
        	       the  form  January  12,  ????.  Other forms of the

	Please check out the following too...

	% groff -morig_me -Tascii meref.me |less -p td

	Look at the sentence of "The date is of the form ..." like this:

          \*(td          Today's  date, directly printable.  The date is of
                         the form January 10, ??????.  Other forms  of  the


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?863ds3c5iw.wl>