From 8ec9ea96297a138abcb7d89e213b94bd23e33dd2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Langa?= Date: Sun, 17 May 2020 18:33:23 +0200 Subject: [PATCH] Use NFKD instead of NFKC because that's what macOS uses by default --- src/bitrot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bitrot.py b/src/bitrot.py index 9f622aa..8b9e65d 100755 --- a/src/bitrot.py +++ b/src/bitrot.py @@ -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