ruby-changes:10501
From: matz <ko1@a...>
Date: Thu, 5 Feb 2009 04:10:09 +0900 (JST)
Subject: [ruby-changes:10501] Ruby:r22053 (trunk): * time.c (LOCALTIME): should call tzset() before localtime_r().
matz 2009-02-05 04:09:58 +0900 (Thu, 05 Feb 2009) New Revision: 22053 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22053 Log: * time.c (LOCALTIME): should call tzset() before localtime_r(). [ruby-dev:37896] Modified files: trunk/ChangeLog trunk/time.c Index: time.c =================================================================== --- time.c (revision 22052) +++ time.c (revision 22053) @@ -487,7 +487,7 @@ #define IF_HAVE_GMTIME_R(x) x #define ASCTIME(tm, buf) asctime_r(tm, buf) #define GMTIME(tm, result) gmtime_r(tm, &result) -#define LOCALTIME(tm, result) localtime_r(tm, &result) +#define LOCALTIME(tm, result) (tzset(),localtime_r(tm, &result)) #else #define IF_HAVE_GMTIME_R(x) /* nothing */ #define ASCTIME(tm, buf) asctime(tm) Index: ChangeLog =================================================================== --- ChangeLog (revision 22052) +++ ChangeLog (revision 22053) @@ -1,3 +1,8 @@ +Thu Feb 5 03:55:22 2009 Yukihiro Matsumoto <matz@r...> + + * time.c (LOCALTIME): should call tzset() before localtime_r(). + [ruby-dev:37896] + Thu Feb 5 02:12:35 2009 Alexander Zavorine <alexandre.zavorine@n...> * symbian/configure.bat: Updated Symbain configuration procedure to -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/