Opened 9 years ago

#3607 new Bugs

no error reporting when parsing ptime with user-defined facets (with bugfix)

Reported by: Thomas.Lemm@… Owned by: az_sw_dude
Milestone: Boost 1.41.0 Component: date_time
Version: Boost 1.40.0 Severity: Problem
Keywords: ptime parsing Cc:


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)

boost-date_time-parse_ptime_with_format.patch (786 bytes) - added by Thomas.Lemm@… 9 years ago.
the patch

Download all attachments as: .zip

Change History (1)

Changed 9 years ago by Thomas.Lemm@…

the patch

Note: See TracTickets for help on using tickets.