Use NFKD instead of NFKC because that's what macOS uses by default

This commit is contained in:
Łukasz Langa 2020-05-17 18:33:23 +02:00
parent c27c259282
commit 8ec9ea9629
No known key found for this signature in database
GPG Key ID: B26995E310250568

View File

@ -54,8 +54,8 @@ if sys.version[0] == '2':
def normalize_path(path):
if FSENCODING == 'utf-8' or FSENCODING == 'UTF-8':
return unicodedata.normalize('NFKC', path)
if FSENCODING in ('utf-8', 'UTF-8'):
return unicodedata.normalize('NFKD', path)
else:
return path