Skip to content

Commit 9bd000c

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 cf8973c commit 9bd000c

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
@@ -803,7 +803,7 @@ is_normalized_quickcheck(PyObject *self, PyObject *input, bool nfc, bool k,
803803
{
804804
/* UCD 3.2.0 is requested, quickchecks must be disabled. */
805805
if (UCD_Check(self)) {
806-
return NO;
806+
return MAYBE;
807807
}
808808

809809
if (PyUnicode_IS_ASCII(input)) {

0 commit comments

Comments
 (0)