summaryrefslogtreecommitdiffstats
path: root/Modules/unicodedata.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-03-04 12:14:57 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-03-04 12:14:57 (GMT)
commit7ed9c4c9102e2098bdbb80456f30e20fb4a9ab90 (patch)
tree71ca738286f473db8fb84489f6ba1db335374b65 /Modules/unicodedata.c
parent2e5432e4c19f160b13b628cce38879bbf0175b19 (diff)
downloadcpython-7ed9c4c9102e2098bdbb80456f30e20fb4a9ab90.zip
cpython-7ed9c4c9102e2098bdbb80456f30e20fb4a9ab90.tar.gz
cpython-7ed9c4c9102e2098bdbb80456f30e20fb4a9ab90.tar.bz2
Merged revisions 78646 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r78646 | victor.stinner | 2010-03-04 13:09:33 +0100 (jeu., 04 mars 2010) | 5 lines Issue #1054943: Fix unicodedata.normalize('NFC', text) for the Public Review Issue #29. PR #29 was released in february 2004! ........
Diffstat (limited to 'Modules/unicodedata.c')
-rw-r--r--Modules/unicodedata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c
index 90e94aa..ecd744a 100644
--- a/Modules/unicodedata.c
+++ b/Modules/unicodedata.c
@@ -684,7 +684,7 @@ nfc_nfkc(PyObject *self, PyObject *input, int k)
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;