Subject: Re: lib/28324 (localtime_r(3) returns GMT)
To: None <firstname.lastname@example.org>
From: Takayoshi Kochi <kochi@NetBSD.org>
Date: 11/16/2004 17:33:01
> See PRs 10282 & 25890
> That solution has been rejected at least twice before.
Thanks for the pointers.
I searched only open PRs so couldn't find the PRs.
I noticed this when running perl58-thread package like you.
And found the following statement in SUSv3:
| Unlike localtime(), the reentrant version is not required to set tzname.
This has serious influence if not fixed, as localtime is
one of the most frequently called functions from CGI programs.
A quick survey showed me that FreeBSD has such a tz setup in
localtime_r since 1996, OpenBSD has since 1998 and
current (at least 2.3.2) glibc has (don't know since when).
Does this fact sound sufficient to throw the two rejections
and have tz setup in localtime_r?
At least it doesn't break the standard.