mirror of https://github.com/python/cpython
gh-101372: Fix unicodedata.is_normalized to properly handle the UCD 3… (gh-101388)
This commit is contained in:
parent
ef7c2bfcf1
commit
9ef7e75434
|
@ -0,0 +1,2 @@
|
||||||
|
Fix :func:`~unicodedata.is_normalized` to properly handle the UCD 3.2.0
|
||||||
|
cases. Patch by Dong-hee Na.
|
|
@ -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. */
|
/* UCD 3.2.0 is requested, quickchecks must be disabled. */
|
||||||
if (UCD_Check(self)) {
|
if (UCD_Check(self)) {
|
||||||
return NO;
|
return MAYBE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PyUnicode_IS_ASCII(input)) {
|
if (PyUnicode_IS_ASCII(input)) {
|
||||||
|
|
Loading…
Reference in New Issue