* [9fans] Y2K
@ 2001-03-17 16:10 rob pike
0 siblings, 0 replies; 2+ messages in thread
From: rob pike @ 2001-03-17 16:10 UTC (permalink / raw)
To: 9fans
Sharp-eyed Ellis noticed that the "printed" date on man pages
was wrong. It's due to a mistake in a fix to a fix to get Y2K
right in troff. Here's the fix to the mistake: change the line
in /sys/lib/tmac/tmac.an from
.nr yD (\\n(yr%100
to
.nr yD (\n(yr%100
The extra backslash confused troff, causing it to leave yD
unset, which coincidentally gives it the value 0, which is
why we thought the code was right last year.
I am sure this is not the last Y2K bug in troff and its
relatives.
-rob
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [9fans] Y2K
@ 2001-03-17 17:32 Ed Wishart
0 siblings, 0 replies; 2+ messages in thread
From: Ed Wishart @ 2001-03-17 17:32 UTC (permalink / raw)
To: 9fans
I note that predefined number register yr in 2nd edition troff has
value 101. Has this been fixed in 3rd edition?
ed
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-03-17 17:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-03-17 16:10 [9fans] Y2K rob pike
2001-03-17 17:32 Ed Wishart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).