UnicodeDecodeError when opening a file with unicode characters in the path
Bug #802176 reported by
János Illés
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyexiv2 |
Fix Released
|
High
|
Olivier Tilloy |
Bug Description
pyexiv2 throws UnicodeDecodeError when using it on files with unicode charachters
File "/usr/lib/
UnicodeDeco
Converting the filename to unicode first will fix the issue:
self.filename = unicode(
I'm using pyexiv2 0.3.0, compiled against 0.21.1 libexiv2
Changed in pyexiv2: | |
status: | Confirmed → In Progress |
Changed in pyexiv2: | |
milestone: | none → 0.3.1 |
Changed in pyexiv2: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thanks for the report János, and sorry for the delay in answering.
In order for me to reproduce and fix the issue, could you please provide me the following information?
• output of the following command: python -c "import sys; print sys.getfilesyst emencoding( ); print sys.getdefaulte ncoding( )" 'DIRECTORY' )"
• name of the file that triggers the bug
• output of the following command: python -c "import os; print os.listdir(
(replace DIRECTORY with the full path to the parent directory that contains the file that triggers the bug)
Thanks in advance!