[Boost-bugs] [Boost C++ Libraries] #6180: attributes string ascii escape "&#nn; " shouldn't throw exception

Subject: [Boost-bugs] [Boost C++ Libraries] #6180: attributes string ascii escape "&#nn; " shouldn't throw exception
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-11-28 12:49:07


#6180: attributes string ascii escape "&#nn;" shouldn't throw exception
---------------------------------+------------------------------------------
 Reporter: kondo@… | Owner: cornedbee
     Type: Patches | Status: new
Milestone: To Be Determined | Component: property_tree
  Version: Boost 1.48.0 | Severity: Problem
 Keywords: |
---------------------------------+------------------------------------------
 In boost/property_tree/detail/rapidxml.hpp

 At member function template
 {{{
 template<class StopPred, class StopPredPure, int Flags>
 static Ch *skip_and_expand_character_refs(Ch *&text)
 }}}

 It supports escape "&amp;", "&quot;", "&gt;", "&lt;" and "&#nn;". (nn is
 number, xnn is also supported. When the member function template find the
 charactor '&' it starts parsing. And if it couldn't find the correct
 match, escape string is ignore and just copy '&' verbatim. But in the case
 of "&#nn", the error below would occur. And this error throw the
 parse_error exception.
 {{{
 BOOST_PROPERTY_TREE_RAPIDXML_PARSE_ERROR("expected ;", src);
 }}}

 I expect just ignore instead of the error. This behavior is same as other
 escape string's manner.

 I attached patch. Could you check it?

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/6180>
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:07 UTC