projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3f2142a
)
Add a comment.
author
Carl Hetherington
<cth@carlh.net>
Tue, 17 Jan 2023 16:21:46 +0000
(17:21 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Tue, 17 Jan 2023 16:21:46 +0000
(17:21 +0100)
src/lib/collator.cc
patch
|
blob
|
history
diff --git
a/src/lib/collator.cc
b/src/lib/collator.cc
index e88a91143fb2cef3f931448551cf6581b64a6a59..7bab36fa6be1f8136ae6f041a97d4df17adb3e5c 100644
(file)
--- a/
src/lib/collator.cc
+++ b/
src/lib/collator.cc
@@
-41,6
+41,7
@@
Collator::Collator()
_collator = ucol_open(nullptr, &status);
if (_collator) {
ucol_setAttribute(_collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
+ /* Ignore case and character encoding (and probably some other things) */
ucol_setAttribute(_collator, UCOL_STRENGTH, UCOL_PRIMARY, &status);
ucol_setAttribute(_collator, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, &status);
}