mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue #1054943: Fix unicodedata.normalize('NFC', text) for the Public Review
Issue #29. PR #29 was released in february 2004!
This commit is contained in:
parent
e689a889da
commit
7c924ec925
3 changed files with 9 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue