From d806f444841a458b4fc62c22d98c809bea513076 Mon Sep 17 00:00:00 2001 From: ospalh Date: Wed, 23 Jan 2013 12:59:37 +0100 Subject: [PATCH] Only the Mac file system stores file names NFD-normalized. So do that normalization only there when looking for files. --- anki/media.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/anki/media.py b/anki/media.py index 2fda0d652..32cefec42 100644 --- a/anki/media.py +++ b/anki/media.py @@ -181,7 +181,7 @@ If the same name exists, compare checksums.""" # generate card q/a and look through all references normrefs = {} def norm(s): - if isinstance(s, unicode): + if isinstance(s, unicode) and isMac: return unicodedata.normalize('NFD', s) return s for f in self.allMedia():