| Summary: | y2k problem in troff (e.g. 'man hosts.equiv') | ||
|---|---|---|---|
| Product: | Base System | Reporter: | emon <emon> |
| Component: | bin | Assignee: | Jeroen Ruigrok van der Werven <asmodai> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | ||
| Priority: | Normal | ||
| Version: | 3.3-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
emon
2000-01-19 16:07:33 UTC
When I invoked 'man host.equiv' at January 20 2000,
I found following in the 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));
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
----
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 I am working on this. State Changed From-To: open->closed This was fixed a while ago. |