]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101372: Fix unicodedata.is_normalized to properly handle the UCD 3… (gh-101388)
authorDong-hee Na <donghee.na@python.org>
Mon, 6 Feb 2023 04:58:00 +0000 (13:58 +0900)
committerGitHub <noreply@github.com>
Mon, 6 Feb 2023 04:58:00 +0000 (13:58 +0900)
Misc/NEWS.d/next/Core and Builtins/2023-01-28-20-31-42.gh-issue-101372.8BcpCC.rst [new file with mode: 0644]
Modules/unicodedata.c

diff --git a/Misc/NEWS.d/next/Core and Builtins/2023-01-28-20-31-42.gh-issue-101372.8BcpCC.rst b/Misc/NEWS.d/next/Core and Builtins/2023-01-28-20-31-42.gh-issue-101372.8BcpCC.rst
new file mode 100644 (file)
index 0000000..65a207e
--- /dev/null
@@ -0,0 +1,2 @@
+Fix :func:`~unicodedata.is_normalized` to properly handle the UCD 3.2.0
+cases. Patch by Dong-hee Na.
index 59fccd4b834dd3c3afd52bc10178c8fb91bb2913..c108f14871f94639e716b7e67c6a0ac69061f360 100644 (file)
@@ -800,7 +800,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)) {