Commit 3f4c2832 authored by Max Kellermann's avatar Max Kellermann

icu/Collate: pass UErrorCode* to ucol_strcollUTF8()

Fixes crash after database update.
parent 1e63e7c0
......@@ -109,7 +109,8 @@ IcuCollate(const char *a, const char *b)
assert(collator != nullptr);
#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
/* fall back to ucol_strcoll() */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment