This is the mail archive of the glibc-bugs@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/154] tzset not called frequently enough by localtime() and friends


------- 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]