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

Russell Bryant russell at ovn.org
Fri Aug 18 20:17:41 UTC 2017


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.

-- 
Russell Bryant


More information about the dev mailing list