Opened 11 years ago

Closed 4 months ago

#10906 closed bug (fixed)

strptime doesn't accept dates very far in the past.

Reported by: pulkomandy Owned by: zooey
Priority: normal Milestone: R1/beta5
Component: System/POSIX Version: R1/Development
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

It is not possible to parse "Fri, 13-Dec-101 20:45:51" (notice the year). Linux implementation accepts this, and sets the tm_year to a negative value.

Attachments (1)

test.c (325 bytes ) - added by pulkomandy 11 years ago.
Test for parsing year 101 with strptime.

Download all attachments as: .zip

Change History (2)

by pulkomandy, 11 years ago

Attachment: test.c added

Test for parsing year 101 with strptime.

comment:1 by waddlesplash, 4 months ago

Milestone: UnscheduledR1/beta5
Resolution: fixed
Status: newclosed

This works now, probably after strptime was replaced with musl's.

Note: See TracTickets for help on using tickets.