[ovs-dev] [PATCH v2 2/2] test-ovsdb: Workaround unicode bug in Python 2.4.x.
Ben Pfaff
blp at nicira.com
Tue Jun 24 16:14:37 UTC 2014
On Fri, Jun 20, 2014 at 01:21:42PM -0700, Gurucharan Shetty wrote:
> Run the following command on Xenserver:
> PYTHONPATH=`pwd`/python/compat::`pwd`/python python ./tests/test-ovsdb.py \
> parse-atoms '{"type": "string", "minLength": 2}' \
> '[""]' '["a"]' '["ab"]' '["abc"]' '["\ud834\udd1e"]'
>
> And we get the following error:
> UnicodeEncodeError: 'ascii' codec can't encode character u'\U0001d11e'
> in position 23: ordinal not in range(128).
>
> It looks like we are hitting the following bug:
> http://bugs.python.org/issue2517
>
> Signed-off-by: Gurucharan Shetty <gshetty at nicira.com>
> ---
> v1-v2:
> Fix the commit message (The commit message included a diff which would get
> applied automatically with 'git am', so get rid of it)
Yeah, I suspected that something odd would happen, so I didn't try to
apply it ;-)
More information about the dev
mailing list