Opened 8 years ago

Closed 8 years ago

#10820 closed Bugs (fixed)

UTF-8 escaping in property_tree JSON serialization is wrong

Reported by: berkus@… Owned by: Sebastian Redl
Milestone: To Be Determined Component: property_tree
Version: Boost 1.57.0 Severity: Problem
Keywords: Cc:

Description

Unicode escaper erroneously uses signed char comparison with unsigned entities, producing invalid results for utf-8.

The patch and test cases are provided in https://github.com/boostorg/property_tree/pull/7

Change History (2)

comment:1 by Sebastian Redl, 8 years ago

Status: newassigned

It's an erroneous assumption that PTree should work with UTF-8 in the first place, but I accepted the pull request. It's now in the develop branch, and will be merged to master soon.

comment:2 by Sebastian Redl, 8 years ago

Resolution: fixed
Status: assignedclosed

Merged to master in commit 3befb8cbe4.

Note: See TracTickets for help on using tickets.