X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Flib%2Fcollator.cc;h=8de1857abeb6c24c988f9e5b2536be94b67b2c6a;hb=f12c261d58d78b9da1ef1a4757a93b63a309002a;hp=ba504fb6e62ba83dbfc6c449852c599816849cd4;hpb=1671e097a24cd169f1ad4ea89b0cb3ae105b1e70;p=dcpomatic.git diff --git a/src/lib/collator.cc b/src/lib/collator.cc index ba504fb6e..8de1857ab 100644 --- a/src/lib/collator.cc +++ b/src/lib/collator.cc @@ -36,10 +36,10 @@ using std::string; using std::vector; -Collator::Collator() +Collator::Collator(char const* locale) { UErrorCode status = U_ZERO_ERROR; - _collator = ucol_open(nullptr, &status); + _collator = ucol_open(locale, &status); if (_collator) { ucol_setAttribute(_collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); /* Ignore case and character encoding (and probably some other things) */