This commit is contained in:
Kovid Goyal 2022-04-22 20:52:00 +05:30
parent 86fc424ff6
commit 69ab397165
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -365,7 +365,7 @@ Matcher_init(Matcher *self, PyObject *args, PyObject *kwds)
col = (UCollator*)PyCapsule_GetPointer(collator, NULL);
if (col == NULL) return -1;
#if U_ICU_VERSION_MAJOR_NUM > 70
self->collator = ucol_clone(self->collator, &status);
self->collator = ucol_clone(col, &status);
#else
self->collator = ucol_safeClone(col, NULL, NULL, &status);
#endif