Bug 88275
Summary: | strptime sets tm_isdst incorrectly | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Michael Stenner <mstenner> | ||||
Component: | glibc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 9 | CC: | drepper, fweimer, roland | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i386 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2003-04-08 20:03:34 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Michael Stenner
2003-04-08 15:11:20 UTC
Created attachment 91009 [details]
test program to demonstrate bug
From my reading of http://www.opengroup.org/onlinepubs/007908799/xsh/strptime.html it seems that strptime is required to only set the fields mentioned in the format (and recompute tm_wday and tm_yday if day/month/year changed) and the rest is unspecified whether it is preserved from previous content of the structure or newly set by strptime (and there is no way how can strptime guess this value even, there is no %Z format specifier for strptime). |