diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2010-03-04 12:09:33 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2010-03-04 12:09:33 (GMT) |
commit | 7c924ec9258fd8e324dedcdcc35bb8706aea7922 (patch) | |
tree | 115df7fb2950ac6e9e399b119d0facc4f0cde618 /Modules | |
parent | e689a889da7f253cdc2281e55659ae591ee49f0b (diff) | |
download | cpython-7c924ec9258fd8e324dedcdcc35bb8706aea7922.zip cpython-7c924ec9258fd8e324dedcdcc35bb8706aea7922.tar.gz cpython-7c924ec9258fd8e324dedcdcc35bb8706aea7922.tar.bz2 |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ 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; |