[ovs-git] Open vSwitch: python: Make invalid UTF-8 sequence messages consistent across Python versions. (master)

dev at openvswitch.org dev at openvswitch.org
Wed Jul 6 16:01:09 UTC 2011

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  070de9bd4137b78b1a74e287fea475ac7aa39bf6 (commit)
      from  391614125ff1adc3cc157124480a50008b8a7801 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 070de9bd4137b78b1a74e287fea475ac7aa39bf6
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=070de9bd4137b78b1a74e287fea475ac7aa39bf6
Author: Ben Pfaff <blp at nicira.com>
python: Make invalid UTF-8 sequence messages consistent across Python versions.
Given the invalid input <C0 22>, some versions of Python report <C0> as the
invalid sequence and other versions report <C0 22> as the invalid sequence.
Similarly, given input <ED 80 7F>, some report <ED 80> and others report
<ED 80 7F> as the invalid sequence.  This caused spurious test failures for
the test "no invalid UTF-8 sequences in strings - Python", so this commit
makes the messages consistent by dropping the extra trailing byte from the

I first noticed the longer sequences <C0 22> and <ED 80 7F> on Ubuntu
10.04 with python version 2.6.5-0ubuntu1, but undoubtedly it exists
elsewhere also.


Summary of changes:
 python/ovs/json.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

Open vSwitch

More information about the git mailing list