[meld: 5/8] added comment
- From: Kai Willadsen <kaiw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [meld: 5/8] added comment
- Date: Sun, 30 Jan 2022 21:55:06 +0000 (UTC)
commit 3ac9613eb58668ee506f7f68dda29dac52109d3b
Author: DAB <dab dab la>
Date: Thu Jan 6 19:59:57 2022 -0500
added comment
meld/dirdiff.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/meld/dirdiff.py b/meld/dirdiff.py
index 325628ea..d168423e 100644
--- a/meld/dirdiff.py
+++ b/meld/dirdiff.py
@@ -283,6 +283,8 @@ class CanonicalListing:
if self.compare.ignore_case:
ci = ci.lower()
if self.compare.normalize_encoding:
+ # NFC or NFD will work here, changing all composed or decomposed
+ # characters to the same set for matching only.
ci = unicodedata.normalize('NFC', ci)
# add the item to the comparison tree
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]