Re: [Boost-bugs] [Boost C++ Libraries] #5033: Property Tree JSON Parser cannot handle utf-8 string correctly.

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #5033: Property Tree JSON Parser cannot handle utf-8 string correctly.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-08-24 06:26:40


#5033: Property Tree JSON Parser cannot handle utf-8 string correctly.
----------------------------------------------+-----------------------------
  Reporter: Lorin Liu <liu.lorin@…> | Owner: cornedbee
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: property_tree
   Version: Boost 1.45.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------------------+-----------------------------

Comment (by Tommy):

 I can confirm this bug.
 As in the previous code snippets, a_unicode::operator() will be called
 with 0xE5. Because std::numeric_limits<char>::max is 127, so
 std::min(0xE5, 127)==127 will be append to the result string.

 Hope this bug can be fixed in the next release.

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