From ajk@physics.purdue.edu  Wed Oct 14 19:06:38 1998
Received: from poynting.physics.purdue.edu (poynting.physics.purdue.edu [128.210.146.58])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA11731
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 14 Oct 1998 19:06:37 -0700 (PDT)
          (envelope-from ajk@physics.purdue.edu)
Received: (from ajk@localhost)
	by poynting.physics.purdue.edu (8.8.8/8.8.8) id VAA20872;
	Wed, 14 Oct 1998 21:06:18 -0500 (EST)
Message-Id: <199810150206.VAA20872@poynting.physics.purdue.edu>
Date: Wed, 14 Oct 1998 21:06:18 -0500 (EST)
From: ajk@purdue.edu
Reply-To: ajk@purdue.edu
To: FreeBSD-gnats-submit@freebsd.org
Subject: troff -me *(td (today's date) string macro broken
X-Send-Pr-Version: 3.2

>Number:         8321
>Category:       gnu
>Synopsis:       [PATCH] troff -me \*(td (today's date) string macro broken
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 14 19:10:01 PDT 1998
>Closed-Date:    Sat Dec 5 21:49:51 PST 1998
>Last-Modified:  Sat Dec  5 21:54:47 PST 1998
>Originator:     Andrew J. Korty
>Release:        FreeBSD 3.0BETA-19981013 i386
>Organization:
Purdue University Physics Department
>Environment:

FreeBSD volta.physics.purdue.edu 3.0-BETA FreeBSD 3.0-BETA #3:
Tue Oct 13 15:04:20 EST 1998
csg@volta.physics.purdue.edu:/usr/src/sys/compile/VOLTA  i386

>Description:

The \*(td string macro, which is supposed to display today's date
in the form "October 14, 1998".  Apparently, a Y2k fix makes it
now display "October 14, 98+1900".  Doesn't look like you can
perform arithmetic in a string definition.

>How-To-Repeat:

Just use \*(td in a -me document.

>Fix:

The following patch works, though there might be better solutions ...

*** contrib/groff/tmac/tmac.e.orig	Wed Oct 14 20:52:49 1998
--- contrib/groff/tmac/tmac.e	Wed Oct 14 20:55:39 1998
***************
*** 1519,1525 ****
  .if \n(dw=5 .ds dw Thursday
  .if \n(dw=6 .ds dw Friday
  .if \n(dw=7 .ds dw Saturday
! .ds td \*(mo \n(dy, \n(yr+1900
  .\"		*** PARAMETRIC INITIALIZATIONS ***
  .rr x
  .nr $v \n(.v00+\n(.sp-1/\n(.sp	\" vs as percentage of ps for .sz request
--- 1519,1526 ----
  .if \n(dw=5 .ds dw Thursday
  .if \n(dw=6 .ds dw Friday
  .if \n(dw=7 .ds dw Saturday
! .nr _y \n(yr+1900
! .ds td \*(mo \n(dy, \n(_y
  .\"		*** PARAMETRIC INITIALIZATIONS ***
  .rr x
  .nr $v \n(.v00+\n(.sp-1/\n(.sp	\" vs as percentage of ps for .sz request
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: obrien 
State-Changed-When: Sat Dec 5 21:49:51 PST 1998 
State-Changed-Why:  
commited 
>Unformatted:
