From 230f0078fe2dd9edfeb2082516b15689c1c04e94 Mon Sep 17 00:00:00 2001 From: jaseg Date: Tue, 9 Aug 2016 23:38:21 +0200 Subject: [PATCH] Fix filesystem encoding on windows --- mpv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mpv.py b/mpv.py index 5e94c7f..226f08c 100644 --- a/mpv.py +++ b/mpv.py @@ -8,12 +8,13 @@ from functools import partial # vim: ts=4 sw=4 et -fs_enc = sys.getfilesystemencoding() if os.name == 'nt': backend = CDLL(ctypes.util.find_library('mpv-1.dll')) + fs_enc = 'utf-8' else: backend = CDLL(ctypes.util.find_library('mpv')) + fs_enc = sys.getfilesystemencoding() class MpvHandle(c_void_p):