Merge lp:~mhr3/dee/locale-prefix-search into lp:dee
Proposed by
Michal Hruby
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Mikkel Kamstrup Erlandsen | ||||
Approved revision: | 356 | ||||
Merged at revision: | 356 | ||||
Proposed branch: | lp:~mhr3/dee/locale-prefix-search | ||||
Merge into: | lp:dee | ||||
Diff against target: |
174 lines (+32/-15) 2 files modified
src/dee-tree-index.c (+30/-15) tests/test-dee.c (+2/-0) |
||||
To merge this branch: | bzr merge lp:~mhr3/dee/locale-prefix-search | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Mikkel Kamstrup Erlandsen (community) | Approve | ||
Review via email: mp+97855@code.launchpad.net |
Commit message
Make sure we don't prefix-compare collation keys when searching in the index
Description of the change
Makes sure we don't prefix-compare collation keys when searching in the index, instead the original terms have to be prefix-compared.
Tests are now using non-C locale to make sure this doesn't regress (is that a good idea though?)
To post a comment you must log in.
Great. Nice detective work there! :-)
I don't particularly mind setting the locale in the tests. If it ever becomes a problem we can set it to some hard coded value or something.