8000 gh-101372: Fix unicodedata.is_normalized to properly handle the UCD 3… · python/cpython@9ef7e75 · GitHub
[go: up one dir, main page]

Skip to content

Commit 9ef7e75

Browse files
authored
gh-101372: Fix unicodedata.is_normalized to properly handle the UCD 3… (gh-101388)
1 parent ef7c2bf commit 9ef7e75

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 li 9B97 ne 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
@@ -800,7 +800,7 @@ is_normalized_quickcheck(PyObject *self, PyObject *input, bool nfc, bool k,
800800
{
801801
/* UCD 3.2.0 is requested, quickchecks must be disabled. */
802802
if (UCD_Check(self)) {
803-
return NO;
803+
return MAYBE;
804804
}
805805

806806
if (PyUnicode_IS_ASCII(input)) {

0 commit comments

Comments
 (0)
0