to normalize unicode we need to have unicode

This commit is contained in:
Damien Elmes 2013-10-06 04:53:11 +09:00
parent 3ed2861115
commit 6c304ebe2f

View File

@ -294,6 +294,8 @@ class MediaManager(object):
data = z.read(i)
csum = checksum(data)
name = meta[i.filename]
if not isinstance(name, unicode):
name = unicode(name, "utf8")
# normalize name for platform
if isMac:
name = unicodedata.normalize("NFD", name)