Skip to content

Commit 3325029

Browse files
gh-101372: Fix unicodedata.is_normalized to properly handle the UCD 3… (gh-101388)
(cherry picked from commit 9ef7e75) Co-authored-by: Dong-hee Na <[email protected]>
1 parent 435fcb0 commit 3325029

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Fix :func:`~unicodedata.is_normalized` to properly handle the UCD 3.2.0
2+
cases. Patch by Dong-hee Na.

Modules/unicodedata.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ is_normalized_quickcheck(PyObject *self, PyObject *input, bool nfc, bool k,
805805
{
806806
/* UCD 3.2.0 is requested, quickchecks must be disabled. */
807807
if (UCD_Check(self)) {
808-
return NO;
808+
return MAYBE;
809809
}
810810

811811
Py_ssize_t i, len;

0 commit comments

Comments
 (0)