gh-101372: Fix unicodedata.is_normalized to properly handle the UCD 3… (gh-101388)

(cherry picked from commit 9ef7e75434)

Co-authored-by: Dong-hee Na <donghee.na@python.org>
This commit is contained in:
Miss Islington (bot) 2023-02-06 02:32:30 -08:00 committed by GitHub
parent cf8973c638
commit 9bd000c7b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
Fix :func:`~unicodedata.is_normalized` to properly handle the UCD 3.2.0
cases. Patch by Dong-hee Na.

View file

@ -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)) {