Problem
The year component of the date printed on the banner page of my printout is incorrect. The year is displayed as 1900 in the year 2000, 1901 in the year 2001, and so on.
Cause
The printer interface script you are using is printing the date using a field descriptor of 19%y for the year. This is, in effect, hardwiring the first two digits of the year to 19.
Solution
For UnixWare 7 Release 7.0.0 and 7.0.1 systems:
- Install Support Level Supplement (SLS) ptf7034a onto your system. Once SLS ptf7034a is installed, use the Printer Setup Manager to remove and re-add any printers that are exhibiting the problem.
For SCO OpenServer Release 5.0.2 and 5.0.4 systems:
- Install SLS OSS601A onto your system. Once SLS OSS601A is installed, use the Printer Manager to remove and re-add any printers that are exhibiting the problem.
For SCO UnixWare Release 2.1.2 systems:- Install SLS ptf3391c onto your system. Once SLS ptf3391c is installed, use the Printer Setup Manager to remove and re-add any printers that are exhibiting the problem.
For SCO UNIX Operating System Version 4.2, SCO Open Desktop Release 3.0 and SCO Open Server Release 3.0 systems:
- Install SLS UOD426D onto your system. Once UOD426D is installed, use sysadmsh(ADM) to remove and re-add any printers that are exhibiting the problem.
NOTES: If you do not want to remove and re-add the printers then you can
manually fix the faulty printer interface scripts. To do this:(1) Log in to the system with the problem scripts as root.
(2) Change to the printer interfaces directory. This directory is:
/etc/lp/interfaces (on UnixWare 7 and SCO UnixWare 2.1 systems)
/usr/spool/lp/admins/lp/interfaces (on SCO OpenServer 5, SCO Open Desktop 3.0, SCO Open Server 3.0 and SCO UNIX Version 4.2 systems)
(3) The interface script directory contains an interface script for each printer configured on your system. The names of the files match the name of the printers configured on the system. Make a backup copy of any file that you are going to attempt to patch.
(4) Use vi(C) or your favorite editor to edit the interface script of the printer that has the problem.
(5) Replace any occurrences of the string "19%y" with "%Y".
(6) Save the interface script back to disk and test to see that the problem has been resolved.