[ovs-dev] [PATCH v2 2/2] python: Force file system encoding on cmdline args

aserdean at ovn.org aserdean at ovn.org
Sun Aug 20 22:09:44 UTC 2017


> -----Original Message-----
> From: ovs-dev-bounces at openvswitch.org [mailto:ovs-dev-
> bounces at openvswitch.org] On Behalf Of Russell Bryant
> Sent: Friday, August 18, 2017 11:18 PM
> To: Alin Balutoiu <abalutoiu at cloudbasesolutions.com>
> Cc: dev at openvswitch.org
> Subject: Re: [ovs-dev] [PATCH v2 2/2] python: Force file system encoding on
> cmdline args
> 
> On Wed, Aug 16, 2017 at 11:01 AM, Alin Balutoiu
> <abalutoiu at cloudbasesolutions.com> wrote:
> > On Windows, the default file system encoding is 'mbcs'
> > resulting in a bad conversion.
> >
> > To make it cross-platform tolerant use 'sys.getfilesystemencoding()'
> > instead of 'utf-8'.
> >
> > Co-authored-by: Alin Serdean <aserdean at cloudbasesolutions.com>
> > Signed-off-by: Alin Balutoiu <abalutoiu at cloudbasesolutions.com>
> > Signed-off-by: Alin Serdean <aserdean at cloudbasesolutions.com>
> > Acked-by: Lance Richardson <lrichard at redhat.com>
> > ---
> > v2: No changes.
> > ---
> >  tests/test-ovsdb.py | 3 ++-
> >  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> Thanks for the fixes!  I've applied these to master, branch-2.8, and branch-
> 2.7.
[Alin Serdean] Thanks guys! All unit test pass now (2.7-master) 😊.

Alin.
> 
> --
> Russell Bryant
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> https://mail.openvswitch.org/mailman/listinfo/ovs-dev



More information about the dev mailing list