summaryrefslogtreecommitdiff
path: root/src/lib/collator.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/collator.cc')
-rw-r--r--src/lib/collator.cc4
1 files changed, 2 insertions, 2 deletions
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) */