PATCH: Metadata not loaded correctly for non-utf8 filename

Bug #872804 reported by Dustin Spicuzza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Low
Dustin Spicuzza

Bug Description

This is related to other encoding-related bugs, but the immediate problem this fixes is when a file with a non-utf8 filename is accessed, then an exception is thrown in get_format() (xl/metadata/__init__.py:99) when exaile converts the filename received from gIO. Simply catching the exception and moving on seems to work.

An example filename that causes this problem would have a URI (__loc) like this:

file:///Music/10%20Stick%20iv%E4g%20Jack%20del%20II.mp3

Note the %E4 character in the middle.

Patched against trunk 3893.

Tags: patch
Revision history for this message
Dustin Spicuzza (dustin-virtualroadside) wrote :
summary: - Metadata not loaded correctly for non-utf8 filename
+ PATCH: Metadata not loaded correctly for non-utf8 filename
tags: added: patch
Revision history for this message
Mathias Brodala (mathbr) wrote :

Has been fixed with r3900.

Changed in exaile:
assignee: nobody → Dustin Spicuzza (dustin-virtualroadside)
importance: Undecided → Low
milestone: none → 0.3.3.0
status: New → Fix Committed
Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.