summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2010-03-04 12:16:27 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2010-03-04 12:16:27 (GMT)
commita9d157a8dd7a5b2b53b60680729c320f9fd9f96c (patch)
tree6b6071465b5d663f1b3f3f6faf552783f0ad3f28 /Modules
parentda13545ebec915c8f22bade82400df12639bc324 (diff)
downloadcpython-a9d157a8dd7a5b2b53b60680729c320f9fd9f96c.zip
cpython-a9d157a8dd7a5b2b53b60680729c320f9fd9f96c.tar.gz
cpython-a9d157a8dd7a5b2b53b60680729c320f9fd9f96c.tar.bz2
Merged revisions 78647 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r78647 | victor.stinner | 2010-03-04 13:14:57 +0100 (jeu., 04 mars 2010) | 12 lines 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')
-rw-r--r--Modules/unicodedata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/unicodedata.c b/Modules/unicodedata.c
index 2dddc48..f7c3292 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;