deltachat-core
deltachat-core copied to clipboard
Search should be case-insensitive for non-ascii characters
The contact search seems to be case-sensitive for russian letters, and it seems to be weird :)
/ Delta 0.99
What do you mean with "weird"? Just the case-insensivity? Or some additional bug?
I mean case-sensivity! It is strange to shift the first letter of a name, or a surname, for the search. F.E.: I search "бьёрн" and don't get "Бьёрн". "илья" doesn't get "Илья", "алекс" doesn't get "Александр", and so on.
I have understood this. I was just wondering if there are more things "weird" :)
Regarding the issue: In fact, it does not work for german umlauts, too :( Eg. typing BJÖRN
won't find Björn
- however, as there are few names starting with umlauts, it was not yet noticed here.
A quick research on the problems:
- It seems as if the ICU extension is not available in sqlite, see https://www.sqlite.org/src/dir?name=ext/icu
- query the database on 16.04 ubuntu with sqliteman has the same problem
- I think in the deltachat-core, everything is done correctly (creating the index with NOCASE, LIKE defaults to nocase)
So, finally, we just need someone to figure out how ICU can be enabled.
NB: maybe you can edit the title if this issue to a more general one - in fact, it affects most non-english-languages in a way ...
"Weird" is for strange, unusual, bizarre here :)
Ok. Correcting the issue name.
/Ilya
Thanks :)
I can reproduce this in 0.100, "BJ" finds "Björn" but "BJÖ" does not.
i assume, this is a core-issue, moving it therefore. also i it is not limited to the contact search but also to chat and message search.