icu/Collate: pass UErrorCode* to ucol_strcollUTF8()

Fixes crash after database update.
This commit is contained in:
Max Kellermann 2014-02-24 21:05:34 +01:00
parent 1e63e7c08b
commit 3f4c283203

View File

@ -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() */