Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <donghee.na@python.org>
  • Loading branch information
corona10 authored and miss-islington committed Feb 6, 2023
commit fd8f031536987fa14fb194fffacb262d80e84975
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 @@ -803,7 +803,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;
}

if (PyUnicode_IS_ASCII(input)) {
Expand Down