Index: src/extensions/experimental/collator.cc |
=================================================================== |
--- src/extensions/experimental/collator.cc (revision 8065) |
+++ src/extensions/experimental/collator.cc (working copy) |
@@ -153,6 +153,11 @@ |
bool ignore_case, ignore_accents, numeric; |
if (ExtractBooleanOption(options, "ignoreCase", &ignore_case)) { |
+ // We need to explicitly set the level to secondary to get case ignored. |
+ // The default L3 ignores UCOL_CASE_LEVEL == UCOL_OFF ! |
+ if (ignore_case) { |
+ collator->setStrength(icu::Collator::SECONDARY); |
+ } |
collator->setAttribute(UCOL_CASE_LEVEL, ignore_case ? UCOL_OFF : UCOL_ON, |
status); |
if (U_FAILURE(status)) { |