Date: Thu, 12 Mar 1998 14:36:13 -0500 (EST) From: "Gregory D. Moncreaff" <moncrg@bt405789.res.ray.com> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: gnu/5992: cvs y2k Message-ID: <199803121936.OAA07505@bt405789.res.ray.com>
next in thread | raw e-mail | index | archive | help
>Number: 5992 >Category: gnu >Synopsis: cvs y2k >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 12 14:40:37 PST 1998 >Last-Modified: >Originator: Gregory D. Moncreaff >Organization: >Release: FreeBSD 2.2.5-RELEASE i386 >Environment: >Description: cvs/rcs store dates internally as 98.03.12... which is problematically for handling y2k >How-To-Repeat: look inside a ..,v file >Fix: change date in ,v to 1998.03.12 here is some suspect code from ../gnu/lib/rcstime.c:date2str() if (!use_zone_offset) VOID sprintf(datebuf, "19%.*s/%.2s/%.2s %.2s:%.2s:%s" + (date[2]=='.' && VERSION(5)<=RCSversion ? 0 : 2), (int)(p-date-1), date, p, p+3, p+6, p+9, p+12 ); else { struct tm t; struct tm const *z; int non_hour; long zone; char c; t.tm_year = atoi(date) - (date[2]=='.' ? 0 : 1900); >Audit-Trail: >Unformatted: Gregory D. Moncreaff 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?199803121936.OAA07505>