ports/7681: TkDesk 1.0 is not Y2K compliant
| From: | Stephane Legrand <stephane@lituus.fr> |
| Date: | Wed, 19 Aug 1998 17:51:34 +0200 (CEST) |
| Subject: | [PORTS] TkDesk 1.0 is not Y2K compliant |
| Send-pr version: |
| Number: | 7681 |
| Category: | ports |
| Synopsis: | TkDesk 1.0 is not Y2K compliant |
| Severity: | non-critical |
| Priority: | low |
| Responsible: | billf@FreeBSD.org |
| State: | closed |
| Class: | sw-bug |
| Arrival-Date: | Wed Aug 19 09:30:01 PDT 1998 |
| Closed-Date: | Fri Nov 13 08:23:02 PST 1998 |
| Last-Modified: | Fri Nov 13 08:24:45 PST 1998 |
| Originator: | Stephane Legrand |
| Release: | FreeBSD 3.0-CURRENT i386 |
| Organization: |
| Environment: |
| Description: |
TkDesk 1.0 is not Y2K compliant. This is NOT only on FreeBSD
and the bug is only a TkDesk one.
The bug appears in the file list window. A file with a year
date > 2000 is displayed with a year looking like "191xx" where xx is
the two last number of the real date.
The following patch (made by the TkDesk author) correct the
problem :
----
In file dsk_ls.c, function file_time() there is the following code
sequence:
else {
timestr[6] = '\0';
strcat (timestr, " 19");
strcat (timestr, itoa (filetm.tm_year));
}
Obviously, that segment should be changed to something like the
following:
else {
timestr[6] = '\0';
if (filetm.tm_year < 100) {
strcat (timestr, " 19");
strcat (timestr, itoa (filetm.tm_year));
} else {
filetm.tm_year -= 100;
sprintf (timestr, "%s 20%02d", timestr, filetm.tm_year);
}
}
----
and the bug is only a TkDesk one.
The bug appears in the file list window. A file with a year
date > 2000 is displayed with a year looking like "191xx" where xx is
the two last number of the real date.
The following patch (made by the TkDesk author) correct the
problem :
----
In file dsk_ls.c, function file_time() there is the following code
sequence:
else {
timestr[6] = '\0';
strcat (timestr, " 19");
strcat (timestr, itoa (filetm.tm_year));
}
Obviously, that segment should be changed to something like the
following:
else {
timestr[6] = '\0';
if (filetm.tm_year < 100) {
strcat (timestr, " 19");
strcat (timestr, itoa (filetm.tm_year));
} else {
filetm.tm_year -= 100;
sprintf (timestr, "%s 20%02d", timestr, filetm.tm_year);
}
}
----
| How-To-Repeat: |
| Fix: |
| Release-Note: |
| Audit-Trail: |
| Reply via E-mail | |
| From: | Duncan Barclay <dmlb@symbionics.co.uk> |
| Date: | Fri, 4 Sep 1998 12:07:55 +0100 |
|
Maintainer (i.e. me) has not patched this yet because a new release of TkDesk should be out in 2nd week of Sept. 1998. This release will include the Y2K fix. Duncan -- Dr. Duncan Barclay dmlb@symbionics.co.uk Symbionics Ltd, St. John's Innovation Park, Cowley Road, Cambridge CB4 4WS, UK Tel: +44 1223 421025 Fax: +44 1223 421031 | |
| State Changed | |
| From-To: | open->analyzed |
| By: | billf |
| When: | Fri Nov 13 07:50:08 PST 1998 |
| Why: | I have contacted the MAINTAINER and am waiting for a reply. |
| Responsible Changed | |
| From-To: | freebsd-ports->billf |
| By: | billf |
| When: | Fri Nov 13 07:50:08 PST 1998 |
| Why: | I will update this port when the change comes. |
| Reply via E-mail | |
| From: | Bill Fumerola <billf@chc-chimes.com> |
| Date: | Fri, 13 Nov 1998 10:48:33 -0500 (EST) |
|
Duncan, In September you said that a new release of TkDesk was coming out that would obsolete this PR. I checked the homepage for TkDesk and found a new version has been released. Would you please submit a PR updating this port, both to keep our tree current and to fix the Y2K bug as well. Thanks, - bill fumerola - billf@chc-chimes.com - BF1560 - computer horizons corp - - ph:(800) 252-2421 - bfumerol@computerhorizons.com - billf@FreeBSD.org - | |
| State Changed | |
| From-To: | analyzed->closed |
| By: | billf |
| When: | Fri Nov 13 08:23:02 PST 1998 |
| Why: | Fixed in ports/8014 which has already been committed |
| Unformatted: |
