mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
86fc424ff6
commit
69ab397165
@ -365,7 +365,7 @@ Matcher_init(Matcher *self, PyObject *args, PyObject *kwds)
|
|||||||
col = (UCollator*)PyCapsule_GetPointer(collator, NULL);
|
col = (UCollator*)PyCapsule_GetPointer(collator, NULL);
|
||||||
if (col == NULL) return -1;
|
if (col == NULL) return -1;
|
||||||
#if U_ICU_VERSION_MAJOR_NUM > 70
|
#if U_ICU_VERSION_MAJOR_NUM > 70
|
||||||
self->collator = ucol_clone(self->collator, &status);
|
self->collator = ucol_clone(col, &status);
|
||||||
#else
|
#else
|
||||||
self->collator = ucol_safeClone(col, NULL, NULL, &status);
|
self->collator = ucol_safeClone(col, NULL, NULL, &status);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user