[ovs-git] [openvswitch/ovs] ab1ec5: Un-revert Work around Python/C JSON unicode differ...

GitHub noreply at github.com
Wed Jan 16 16:01:04 UTC 2019


  Branch: refs/heads/branch-2.9
  Home:   https://github.com/openvswitch/ovs
  Commit: ab1ec5907f3d32cca8cc347007656771467f4af3
      https://github.com/openvswitch/ovs/commit/ab1ec5907f3d32cca8cc347007656771467f4af3
  Author: Terry Wilson <twilson at redhat.com>
  Date:   2019-01-16 (Wed, 16 Jan 2019)

  Changed paths:
    M python/ovs/json.py
    M python/ovs/jsonrpc.py

  Log Message:
  -----------
  Un-revert Work around Python/C JSON unicode differences

This fix was reverted because it depended on a small bit of code
in a patch that was reverted that changed some python/ovs testing
and build. The fix is still necessary.

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.

Acked-by: Lucas Alvares Gomes <lucasagomes at gmail.com>
Signed-off-by: Terry Wilson <twilson at redhat.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>



      **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