View Bug Activity | Format For Printing
method __tzfile_default in tzfile.c does not set "__use_tzfile = 0" at the end of the method. This leads to the problem, that the global variable "timezone" is not set correctly if the env variable TZ is set e.g. to JKL3:10PNM4:40 (with the first part being standard time and the second daylight saving time) Then, timezone is set to a nonsense value of 18000 instead of the expected 11400 For a demonstration see the attached program. Note: this bug blocks LSB conformance (LSB runtime tests T.ctime_X 1, T.localtim_X 1, T.mktime_X 1) Bug found in debian sarge system (libc 2.3.2) but is not yet fixed in CVS.
Created an attachment (id=1126) Short program to demonstrate the behaviour Attached program to test tzset behaviour: The last printed timezone should be 11400, but is 18000.
Created an attachment (id=1127) Patch for 2.4 CVS version (29.6.2006)
The test program shows the expected result at least on recent systems. And the patch seems to be wrong in any case. Unless you can provide a real explanation or a test program I assume this is just a bug in debian's libc.