commit | 7c924ec9258fd8e324dedcdcc35bb8706aea7922 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Thu Mar 04 12:09:33 2010 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Thu Mar 04 12:09:33 2010 +0000 |
tree | 115df7fb2950ac6e9e399b119d0facc4f0cde618 | |
parent | e689a889da7f253cdc2281e55659ae591ee49f0b [diff] [blame] |
Issue #1054943: Fix unicodedata.normalize('NFC', text) for the Public Review Issue #29. PR #29 was released in february 2004!
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c index 2eb1911..0269175 100644 --- a/Modules/unicodedata.c +++ b/Modules/unicodedata.c
@@ -682,7 +682,7 @@ comb = 0; while (i1 < end) { int comb1 = _getrecord_ex(*i1)->combining; - if (comb1 && comb == comb1) { + if (comb && (comb1 == 0 || comb == comb1)) { /* Character is blocked. */ i1++; continue;