From a027c0b989f7c7a5182db25aa628d2c138d024ae Mon Sep 17 00:00:00 2001 From: jvoisin Date: Wed, 16 Dec 2015 15:00:14 +0100 Subject: Fix the gui's metadata popup It seems that Python is still sucking hard when it comes to encoding. --- libmat/parser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmat/parser.py b/libmat/parser.py index 2a82a25..e36e921 100644 --- a/libmat/parser.py +++ b/libmat/parser.py @@ -28,7 +28,7 @@ class GenericParser(object): self.backup = backup self.is_writable = is_writable self.filename = filename - self.basename = os.path.basename(filename) + self.basename = os.path.basename(filename).decode('utf8') self.output = tempfile.mkstemp()[1] def __del__(self): -- cgit v1.3