This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/4778] New: strptime does not update tm_isdst when parsing DST time zone in %Z or %c
- From: "tomek at jot23 dot org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 11 Jul 2007 17:09:25 -0000
- Subject: [Bug libc/4778] New: strptime does not update tm_isdst when parsing DST time zone in %Z or %c
- Reply-to: sourceware-bugzilla at sourceware dot org
Really as in title.
I am not really sure this should be considered a bug but I file
it here for others to look and decide.
The problem exists during daylight saving times, when %Z and %c
formats passed to strftime produce modified timezone name
(for Poland this means that CET becomes CEST). Now when
that string is passed back to strptime with correct (the same)
format specifier I expect resulting tm struct to be identical
to the one passed to strftime (with regard to fields considered
for conversion). This is not the case - strptime does not set
tm_isdst field of structure to positive value when timezone
name refers to daylight saving time zone in effect.
I found this in: glibc-2.5-10.fc6.x86_64 on FC6 on x86_64.
--
Summary: strptime does not update tm_isdst when parsing DST time
zone in %Z or %c
Product: glibc
Version: unspecified
Status: NEW
Severity: minor
Priority: P3
Component: libc
AssignedTo: drepper at redhat dot com
ReportedBy: tomek at jot23 dot org
CC: glibc-bugs at sources dot redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=4778
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.