Subject: [Boost-bugs] [Boost C++ Libraries] #3607: no error reporting when parsing ptime with user-defined facets (with bugfix)
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2009-11-11 10:15:33
#3607: no error reporting when parsing ptime with user-defined facets (with
bugfix)
--------------------------------+-------------------------------------------
Reporter: Thomas.Lemm@⦠| Owner: az_sw_dude
Type: Bugs | Status: new
Milestone: Boost 1.41.0 | Component: date_time
Version: Boost 1.40.0 | Severity: Problem
Keywords: ptime parsing |
--------------------------------+-------------------------------------------
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.
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3607> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:01 UTC