[ovs-git] [openvswitch/ovs] 244bed: Work around Python/C JSON unicode differences
GitHub
noreply at github.com
Fri Oct 12 15:37:32 UTC 2018
Branch: refs/heads/branch-2.9
Home: https://github.com/openvswitch/ovs
Commit: 244bed70895c812ca954fb36b7a47dcec687cfdf
https://github.com/openvswitch/ovs/commit/244bed70895c812ca954fb36b7a47dcec687cfdf
Author: Terry Wilson <twilson at redhat.com>
Date: 2018-10-12 (Fri, 12 Oct 2018)
Changed paths:
M python/ovs/jsonrpc.py
Log Message:
-----------
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 <twilson at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
Acked-by: Lucas Alvares Gomes <lucasagomes at gmail.com>
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the git
mailing list