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:
parent
db262031c3
commit
d806f44484
@ -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():
|
||||||
|
Loading…
Reference in New Issue
Block a user