non-GMT to GMT, when un-setting TZ. Set _timezone and _daylight even
if no DST is given in TZ.
+2011-06-14 Craig Howland <howland@LGSInnovations.com>
+
+ * libc/time/tzset_r.c (tzset_r): Correct behavior for changing from
+ non-GMT to GMT, when un-setting TZ. Set _timezone and _daylight even
+ if no DST is given in TZ.
+
2011-06-13 Eric Blake <eblake@redhat.com>
* libc/stdio/wsetup.c (__swsetup_r): Set errno on failure.
_daylight = 0;
_tzname[0] = "GMT";
_tzname[1] = "GMT";
+ free(prev_tzenv);
+ prev_tzenv = NULL;
TZ_UNLOCK;
return;
}
tzenv += n;
if (sscanf (tzenv, "%10[^0-9,+-]%n", __tzname_dst, &n) <= 0)
- {
+ { /* No dst */
_tzname[1] = _tzname[0];
+ _timezone = tz->__tzrule[0].offset;
+ _daylight = 0;
TZ_UNLOCK;
return;
}