icu/Collate: pass UErrorCode* to ucol_strcollUTF8()
Fixes crash after database update.
This commit is contained in:
parent
1e63e7c08b
commit
3f4c283203
@ -109,7 +109,8 @@ IcuCollate(const char *a, const char *b)
|
|||||||
assert(collator != nullptr);
|
assert(collator != nullptr);
|
||||||
|
|
||||||
#if U_ICU_VERSION_MAJOR_NUM >= 50
|
#if U_ICU_VERSION_MAJOR_NUM >= 50
|
||||||
return (int)ucol_strcollUTF8(collator, a, -1, b, -1, nullptr);
|
UErrorCode code = U_ZERO_ERROR;
|
||||||
|
return (int)ucol_strcollUTF8(collator, a, -1, b, -1, &code);
|
||||||
#else
|
#else
|
||||||
/* fall back to ucol_strcoll() */
|
/* fall back to ucol_strcoll() */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user