Opened 13 years ago
#3607 new Bugs
no error reporting when parsing ptime with user-defined facets (with bugfix)
Reported by: | Owned by: | az_sw_dude | |
---|---|---|---|
Milestone: | Boost 1.41.0 | Component: | date_time |
Version: | Boost 1.40.0 | Severity: | Problem |
Keywords: | ptime parsing | Cc: |
Description
When parsing date/time with facets mismatches doe not get reported (e.g. vial failbit)
reproduceable testcase: parse "20090101" with facet "%Y-%m-%dT%H:%M:%S%F" yields correctly parsed ptime "1-Oct-2009" but should not.
the patch: adds check for testing of seperator characters to match format and actual parsed string.
Maybe the additional check should be applied to different locations in the source code, which I cannot judge at this point.
Attachments (1)
Change History (1)
by , 13 years ago
Attachment: | boost-date_time-parse_ptime_with_format.patch added |
---|
Note:
See TracTickets
for help on using tickets.
the patch