From nobody@FreeBSD.org  Mon May  1 00:42:21 2000
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21])
	by hub.freebsd.org (Postfix) with ESMTP id 1366E37B77C
	for <freebsd-gnats-submit@FreeBSD.org>; Mon,  1 May 2000 00:42:21 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.9.3/8.9.2) id AAA14627;
	Mon, 1 May 2000 00:42:20 -0700 (PDT)
	(envelope-from nobody@FreeBSD.org)
Message-Id: <200005010742.AAA14627@freefall.freebsd.org>
Date: Mon, 1 May 2000 00:42:20 -0700 (PDT)
From: ma@neko.net
Sender: nobody@FreeBSD.org
To: freebsd-gnats-submit@FreeBSD.org
Subject: ports lang/eperl Y2K problem.
X-Send-Pr-Version: www-1.0

>Number:         18321
>Category:       ports
>Synopsis:       ports lang/eperl Y2K problem.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    knu
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon May  1 00:50:01 PDT 2000
>Closed-Date:    Mon May 1 19:58:03 JST 2000
>Last-Modified:  Mon May  1 19:58:29 JST 2000
>Originator:     MAWATARI Ryota
>Release:        4.0-RELEASE
>Organization:
>Environment:
>Description:
Programs made from ports lang/eperl shows year 2000 as '19100'.

>How-To-Repeat:
. Install lang/eperl into apache web server.
. Enable ePerl in httpd.conf or apache.conf.
. Make a html document such as
  % cat > a.phtml
  <? print "$ENV{SCRIPT_SRC_MODIFIED_ISOTIME}\n"; !>
  ^D
. See the document through apache.

>Fix:
--- eperl_sys.c.original        Mon Jul 27 17:41:34 1998
+++ eperl_sys.c Mon May  1 15:07:34 2000
@@ -239,8 +239,8 @@
     char timestr[128];
 
     tm = localtime(t);
-    sprintf(timestr, "%02d-%02d-19%02d %02d:%02d",
-                      tm->tm_mday, tm->tm_mon+1, tm->tm_year,
+    sprintf(timestr, "%02d-%02d-%04d %02d:%02d",
+                      tm->tm_mday, tm->tm_mon+1, tm->tm_year+1900,
                       tm->tm_hour, tm->tm_min);
     return strdup(timestr);
 }


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports->knu 
Responsible-Changed-By: knu 
Responsible-Changed-When: Mon May 1 17:32:14 JST 2000 
Responsible-Changed-Why:  
I'll handle this. 

From: "Akinori -Aki- MUSHA" <knu@idaemons.org>
To: ma@neko.net
Cc: freebsd-gnats-submit@FreeBSD.ORG
Subject: Re: ports/18321: ports lang/eperl Y2K problem.
Date: Mon, 01 May 2000 17:31:08 +0900

 At Mon, 1 May 2000 00:42:20 -0700 (PDT),
 ma@neko.net wrote:
 > >Description:
 > Programs made from ports lang/eperl shows year 2000 as '19100'.
 
 Okay, I'll take care of this.  However, ePerl doesn't look so well
 maintained recently you still find such a trivial Y2K problem.  Hmm,
 the latest release seems as of February 8, 1998...
 
 Come to think of it, you've submitted the bug report to the author,
 haven't you?
 
 -- 
                            /
                           /__  __       
                          / )  )  ) )  /
 Akinori -Aki- MUSHA aka / (_ /  ( (__(  @ idaemons.org / FreeBSD.org
 
 "We're only at home when we're on the run, on the wing, on the fly"
 
State-Changed-From-To: open->closed 
State-Changed-By: knu 
State-Changed-When: Mon May 1 19:58:03 JST 2000 
State-Changed-Why:  
Patch added, thanks! 
>Unformatted:
