Skip to content

Commit

Permalink
pythongh-101372: Fix unicodedata.is_normalized to properly handle the…
Browse files Browse the repository at this point in the history
… UCD 3… (pythongh-101388)

(cherry picked from commit 9ef7e75)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
  • Loading branch information
miss-islington and corona10 authored Feb 6, 2023
1 parent 435fcb0 commit 3325029
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Fix :func:`~unicodedata.is_normalized` to properly handle the UCD 3.2.0
cases. Patch by Dong-hee Na.
2 changes: 1 addition & 1 deletion Modules/unicodedata.c
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ is_normalized_quickcheck(PyObject *self, PyObject *input, bool nfc, bool k,
{
/* UCD 3.2.0 is requested, quickchecks must be disabled. */
if (UCD_Check(self)) {
return NO;
return MAYBE;
}

Py_ssize_t i, len;
Expand Down

0 comments on commit 3325029

Please sign in to comment.