From owner-ports-jp@jp.freebsd.org  Sat Jan  1 01:27:51 2000
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id BAA85376;
	Sat, 1 Jan 2000 01:27:51 +0900 (JST)
	(envelope-from owner-ports-jp@jp.FreeBSD.org)
Received: from sraigw.sra.co.jp (sraigw.sra.co.jp [202.32.10.2])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id BAA85371
	for <ports-jp@jp.FreeBSD.ORG>; Sat, 1 Jan 2000 01:27:51 +0900 (JST)
	(envelope-from tagami@sra.co.jp)
Received: from sranhc.sra.co.jp (sranhc [133.137.20.3])
	by sraigw.sra.co.jp (8.8.7/3.7W-sraigw) with ESMTP id BAA04663
	for <ports-jp@jp.FreeBSD.ORG>; Sat, 1 Jan 2000 01:27:50 +0900 (JST)
Received: from sramha.sra.co.jp (sramha [133.137.48.146])
	by sranhc.sra.co.jp (8.8.7/3.6Wbeta7-srambox) with SMTP id BAA08934;
	Sat, 1 Jan 2000 01:27:50 +0900 (JST)
Received: from localhost (sramhh.sra.co.jp [133.137.48.93]) by sramha.sra.co.jp (8.6.12+2.5Wb7/3.3W6-950712) with ESMTP id BAA07838; Sat, 1 Jan 2000 01:27:48 +0900
To: ports-jp@jp.FreeBSD.ORG
Cc: tagami@sra.co.jp
From: Takao TAGAMI <tagami@sra.co.jp>
X-Mailer: Mew version 1.93 on Emacs 19.34 / Mule 2.3 (SUETSUMUHANA)
Mime-Version: 1.0
Content-Type: Multipart/Mixed;
	boundary="--Next_Part(Sat_Jan__1_01:27:23_2000_595)--"
Content-Transfer-Encoding: 7bit
Message-Id: <20000101012747R.tagami@sra.co.jp>
Date: Sat, 01 Jan 2000 01:27:47 +0900
X-Dispatcher: imput version 980905(IM100)
Lines: 43
Reply-To: ports-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990727
X-Sequence: ports-jp 8465
Subject: [ports-jp 8465] Y2K bug dclock
Errors-To: owner-ports-jp@jp.freebsd.org
Sender: owner-ports-jp@jp.freebsd.org
X-Originator: tagami@sra.co.jp

----Next_Part(Sat_Jan__1_01:27:23_2000_595)--
Content-Type: Text/Plain; charset=iso-2022-jp
Content-Transfer-Encoding: 7bit

$BED>e!w#S#R#A$G$9!#(B
$BB?J,$3$A$i$GNI$$$HH=CG$7$?$N$G!"AwIU$7$^$9!#(B

$BIaCJ;HMQ$7$F$$$k(B ports/x11-clocks/dclock$B$G$9$,!"(B2000$BG/$r7^$($F!"G/I=<((B
$B$,$*$+$7$/$J$C$F$7$^$$$^$7$?!#(B
# "2000"$B$HI=<($5$l$:(B "19:0"$B$HI=<($5$l$k!#(B

$BIaCJ;HMQ$7$F$$$k(B dclock$B$O!"(B3.3-RELEASE$B$N(B ports$B$+$i(B install$B$7$?J*$G$9$,!"(B
ports-current(1999/12/28)$B$G$b=$@5$5$l$F$$$J$$$h$&$G$9$N$G!"%Q%C%A$rAw(B
$BIU$7$^$9!#(B

-----------------------------------------------------------
       ($B3t(B)$B#S#R#A(B  $B;:6H%7%9%F%`Bh0lIt(B  $BBhFs%0%k!<%W(B
     $BED>e(B $B9'M:(B (TAGAMI Takao) E-mail: tagami@sra.co.jp
-----------------------------------------------------------

----Next_Part(Sat_Jan__1_01:27:23_2000_595)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=diff-current

--- Dclock.c.ORG	Sat Jan  1 00:54:46 2000
+++ Dclock.c	Sat Jan  1 01:01:49 2000
@@ -1000,10 +1000,11 @@
                     *datep++ = (now->tm_mday / 10 + '0');
                 *datep++ = now->tm_mday % 10 + '0';
             when 'Y':
-                *datep++ = '1', *datep++ = '9';
+                *datep++ = (now->tm_year + 1900) / 1000 + '0';
+                *datep++ = (now->tm_year + 1900) % 1000 / 100 + '0';
             /* fall thru */
             case 'y':
-                *datep++ = now->tm_year / 10 + '0';
+                *datep++ = now->tm_year % 100 / 10 + '0';
                 *datep++ = now->tm_year % 10 + '0';
             when '%':
                 *datep++ = *p;

----Next_Part(Sat_Jan__1_01:27:23_2000_595)----
