Only the Mac file system stores file names NFD-normalized. So do that normalization only there when looking for files.

This commit is contained in:
ospalh 2013-01-23 12:59:37 +01:00 committed by Damien Elmes
parent db262031c3
commit d806f44484

View File

@ -181,7 +181,7 @@ If the same name exists, compare checksums."""
# generate card q/a and look through all references # generate card q/a and look through all references
normrefs = {} normrefs = {}
def norm(s): def norm(s):
if isinstance(s, unicode): if isinstance(s, unicode) and isMac:
return unicodedata.normalize('NFD', s) return unicodedata.normalize('NFD', s)
return s return s
for f in self.allMedia(): for f in self.allMedia():