Comment 14 for bug 824440

Revision history for this message
VinsS (vincent-vandevyvre) wrote :

don't works

    filename = filename.decode('utf-8')
AttributeError: 'str' object has no attribute 'decode'

same on v3.1.2 and v3.2.2

It should be better to solve this question at the beggining of Metaadata.__init__()

self.filename = filename.magically_transform()

because all functions or methods reurns the same error

- sys.getfilesystemencoding()
- os.path.exists()
- os.path.isfile()
- os.stat()
- etc