Opened 10 years ago

#10906 new bug

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

Reported by: pulkomandy Owned by: zooey
Priority: normal Milestone: Unscheduled
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 10 years ago.
Test for parsing year 101 with strptime.

Download all attachments as: .zip

Change History (1)

by pulkomandy, 10 years ago

Attachment: test.c added

Test for parsing year 101 with strptime.

Note: See TracTickets for help on using tickets.