Re: [ovs-dev] [PATCH 2/2] test-ovsdb: Workaround unicode bug in Python 2.4.x.

2014-06-26 Thread Ben Pfaff
Thanks, I agree with that decision. On Jun 26, 2014 6:22 PM, "Gurucharan Shetty" wrote: > On Tue, Jun 24, 2014 at 10:15 AM, Gurucharan Shetty > wrote: > >> > >> There's a lot of weirdness around python and encodings that varies from > >> version to version and from one Python configuration to th

Re: [ovs-dev] [PATCH 2/2] test-ovsdb: Workaround unicode bug in Python 2.4.x.

2014-06-26 Thread Gurucharan Shetty
On Tue, Jun 24, 2014 at 10:15 AM, Gurucharan Shetty wrote: >> >> There's a lot of weirdness around python and encodings that varies from >> version to version and from one Python configuration to the next. Did >> you try this on a non-XenServer system too, say Ubuntu? Also you might >> want to t

Re: [ovs-dev] [PATCH 2/2] test-ovsdb: Workaround unicode bug in Python 2.4.x.

2014-06-24 Thread Gurucharan Shetty
> > There's a lot of weirdness around python and encodings that varies from > version to version and from one Python configuration to the next. Did > you try this on a non-XenServer system too, say Ubuntu? Also you might > want to try on the Arch distro (I think that's Ethan uses) because I > see

Re: [ovs-dev] [PATCH 2/2] test-ovsdb: Workaround unicode bug in Python 2.4.x.

2014-06-24 Thread Ben Pfaff
On Fri, Jun 20, 2014 at 12:22:15PM -0700, Gurucharan Shetty wrote: > In addition to the above bug, I see some other wierdness while dealing with > unicode on Xenserver and Python 2.4.3 . As an example, the following diff > would work fine if python is run from command line but not from inside > tes

Re: [ovs-dev] [PATCH 2/2] test-ovsdb: Workaround unicode bug in Python 2.4.x.

2014-06-24 Thread Ben Pfaff
On Tue, Jun 24, 2014 at 09:13:14AM -0700, Ben Pfaff wrote: > On Fri, Jun 20, 2014 at 12:22:15PM -0700, Gurucharan Shetty wrote: > > In addition to the above bug, I see some other wierdness while dealing with > > unicode on Xenserver and Python 2.4.3 . As an example, the following diff > > would wor

[ovs-dev] [PATCH 2/2] test-ovsdb: Workaround unicode bug in Python 2.4.x.

2014-06-20 Thread Gurucharan Shetty
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