Page 1 of 1

[0.16.39] search is case-sensitive for russian language

Posted: Thu May 03, 2018 7:49 pm
by diraria
Full version of title: "[0.16.39] search in techonologies (and other places) is (wrongly) case-sensitive for non-english languages"

Steps to reproduce:

1. Install factorio
2. Change interface language from English to Russian
3. Start new game
4. Open techonologies tree
5. Type "оптика" (it is russian word "optics", note that it starts with lowercase) in search box

Expected behaviour: optics techonology is displayed
Actual behaviour: no techonologies are displayed

Note: search is also case-sensitive in other places, like inventory.


Thanks for factorio!

Re: [0.16.39] search is case-sensitive for russian language

Posted: Mon May 07, 2018 5:56 pm
by Rseding91
Thanks for the report however we don't have any plans to fix this for the foreseeable future.

Re: [0.16.39] search is case-sensitive for russian language

Posted: Mon May 07, 2018 6:52 pm
by steinio
Rseding91 wrote:Thanks for the report however we don't have any plans to fix this for the foreseeable future.
Doesn't lowercase() work for russian?
It's state of the art to compare strings lower or uppercase if case sensitivity isn't necessary.

Re: [0.16.39] search is case-sensitive for russian language

Posted: Mon May 07, 2018 6:56 pm
by Rseding91
steinio wrote:
Rseding91 wrote:Thanks for the report however we don't have any plans to fix this for the foreseeable future.
Doesn't lowercase() work for russian?
It's state of the art to compare strings lower or uppercase if case sensitivity isn't necessary.
If it did, it would work right now :)

Re: [0.16.39] search is case-sensitive for russian language

Posted: Wed May 16, 2018 7:09 pm
by henke37
It's wrong to convert case for comparisons. Greek for example has an upper case letter that corresponds to two different lower case letters. And german has a letter that expands to two letters when it turns to upper case.

Re: [0.16.39] search is case-sensitive for russian language

Posted: Wed May 16, 2018 7:34 pm
by Bilka
henke37 wrote:And german has a letter that expands to two letters when it turns to upper case.
What? There's ẞ (uppercase ß), Ö, Ü, and Ä, so what are you talking about?

Re: [0.16.39] search is case-sensitive for russian language

Posted: Wed May 16, 2018 8:25 pm
by steinio
Bilka wrote:
henke37 wrote:And german has a letter that expands to two letters when it turns to upper case.
What? There's ẞ (uppercase ß), Ö, Ü, and Ä, so what are you talking about?
Uppercase ß is new.