From 964af5fc92f7536d8a421de63a00b9dae4fe2041 Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Thu, 3 Sep 2015 20:11:08 +0100 Subject: [PATCH] Fix crash with VLC on windows with unicode chars in filename. Fixes bug 1491998. Fixes: https://launchpad.net/bugs/1491998 --- openlp/core/ui/media/vendor/vlc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/core/ui/media/vendor/vlc.py b/openlp/core/ui/media/vendor/vlc.py index 95f12ec85..f56d3ef56 100644 --- a/openlp/core/ui/media/vendor/vlc.py +++ b/openlp/core/ui/media/vendor/vlc.py @@ -60,7 +60,7 @@ if sys.version_info[0] > 2: """Translate string or bytes to bytes. """ if isinstance(s, str): - return bytes(s, sys.getfilesystemencoding()) + return s.encode() else: return s