Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Work around Python/C JSON unicode differences
The OVS C-based JSON parser operates on bytes, so the parser_feed function returns the number of bytes that are processed. The pure Python JSON parser currently operates on unicode, so it expects that Parser.feed() returns a number of characters. This difference leads to parsing errors when unicode characters are passed to the C JSON parser from Python. Signed-off-by: Terry Wilson <[email protected]> Signed-off-by: Ben Pfaff <[email protected]> Acked-by: Lucas Alvares Gomes <[email protected]>
- Loading branch information