[Boost-bugs] [Boost C++ Libraries] #4314: write_json() create_escapes()

Subject: [Boost-bugs] [Boost C++ Libraries] #4314: write_json() create_escapes()
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-06-08 22:54:31


#4314: write_json() create_escapes()
-------------------------------------+--------------------------------------
 Reporter: pascal.fautre@… | Owner: cornedbee
     Type: Bugs | Status: new
Milestone: Boost 1.43.0 | Component: property_tree
  Version: Boost 1.42.0 | Severity: Problem
 Keywords: |
-------------------------------------+--------------------------------------
 '''Bad handling of escaping:'''

 From an std::string, *b is a char (not unsigned char).

 {{{
 unsigned long u = (std::min)(static_cast<unsigned long>(*b), 0xFFFFul);
 }}}

 This line converts all chars with a negative value to 0xFFFFul.


 On Mac OSX 10.6 there is a problem with std::locale, it cannot be changed
 to something else than 'C'. The strings I added in my ptree are already
 UTF-8 encoded.

 All french accents become uFFFF\uFFFF with write_json() while they are
 written fine with write_xml().

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