Re: [Boost-bugs] [Boost C++ Libraries] #1678: Boost.property_tree::read_xml does not parse UNICODE file with BOMs

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #1678: Boost.property_tree::read_xml does not parse UNICODE file with BOMs
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-02-18 20:59:27


#1678: Boost.property_tree::read_xml does not parse UNICODE file with BOMs
--------------------------------------+-------------------------------------
  Reporter: tom | Owner: cornedbee
      Type: Patches | Status: assigned
 Milestone: Boost 1.47.0 | Component: property_tree
   Version: Boost Development Trunk | Severity: Showstopper
Resolution: | Keywords: property_tree UNICODE BOM read_xml
--------------------------------------+-------------------------------------

Comment (by marshall):

 Ok, then - let's add these additional test cases:

 {{{

 // byte order mark (UTF-16, big endian)
 const char *bug_data_pr1678be =
     "\xFE\xFF\0<\0?\0x\0m\0l\0 \0v\0e\0r\0s\0i\0o\0n\0=\0\"\01\0.\00\0\"\0
 \0e\0n\0c\0o\0d\0i\0n\0g\0=\0\"\0u\0t\0f\0-\08\0\"\0?\0>\0<\0r\0o\0o\0t\0/\0>";

 // byte order mark (UTF-16, little endian)
 const char *bug_data_pr1678le =
     "\xFF\xFE<\0?\0x\0m\0l\0 \0v\0e\0r\0s\0i\0o\0n\0=\0\"\01\0.\00\0\"\0
 \0e\0n\0c\0o\0d\0i\0n\0g\0=\0\"\0u\0t\0f\0-\08\0\"\0?\0>\0<\0r\0o\0o\0t\0/\0>\0";
 }}}

 and make sure that they work - because they don't at the moment.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/1678#comment:7>
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:05 UTC