Date: Wed, 14 Oct 1998 21:06:18 -0500 (EST) From: ajk@purdue.edu To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: gnu/8321: troff -me *(td (today's date) string macro broken Message-ID: <199810150206.VAA20872@poynting.physics.purdue.edu>
next in thread | raw e-mail | index | archive | help
>Number: 8321 >Category: gnu >Synopsis: troff -me \*(td (today's date) string macro broken >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 Oct 14 19:10:01 PDT 1998 >Last-Modified: >Originator: Andrew J. Korty >Organization: Purdue University Physics Department >Release: FreeBSD 3.0BETA-19981013 i386 >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 >Audit-Trail: >Unformatted: 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?199810150206.VAA20872>