Subject: Re: Time problem with Perl
To: Martin Husemann <martin@duskware.de>
From: Marc Baudoin <babafou@babafou.eu.org>
List: tech-pkg
Date: 12/12/2004 11:54:54
Martin Husemann <martin@duskware.de> écrit :
> On Fri, Dec 10, 2004 at 11:52:25AM +0100, Marc Baudoin wrote:
> > I don't have this problem with perl-5.8.5nb2 (on yet another
> > computher running stock 2.0) but I have it with perl-5.8.5nb3 and
> > perl-5.8.5nb4. Could it be a wrong pkgsrc patch?
>
> The newer perls are compiled to support threading, right?
> I bet this difference comes from localtime() vs. localtime_r() - the man
> page says:
>
> [..] localtime_r()
> does not imply initialization of the local time conversion information;
> the application may need to do so by calling tzset(3).
Looks like it. patch-ci from Johnny C. Lam does the trick.