This is the mail archive of the
glibc-bugs@sources.redhat.com
mailing list for the glibc project.
[Bug libc/154] tzset not called frequently enough by localtime() and friends
- From: "franke at computer dot org" <sourceware-bugzilla at sources dot redhat dot com>
- To: glibc-bugs at sources dot redhat dot com
- Date: 12 May 2004 08:21:25 -0000
- Subject: [Bug libc/154] tzset not called frequently enough by localtime() and friends
- References: <20040511220155.154.ballen@gravity.phys.uwm.edu>
- Reply-to: sourceware-bugzilla at sources dot redhat dot com
------- Additional Comments From franke at computer dot org 2004-05-12 08:21 -------
To resolve this issue, is would be necessary to call tzset() internally in each
invocation of localtime(). This may be considered as too expensive.
But even if an application calls tzset() itself, glibc does not reload the
timezone info if TZ is unset.
To reproduce this bug, add tzset() to program in comment 0:
while (1) {
+ tzset();
time(&epochnow);
timenow=localtime(&epochnow);
The output will be the same.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |franke at computer dot org
http://sources.redhat.com/bugzilla/show_bug.cgi?id=154
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.