CleverRaven / Cataclysm-DDA

Cataclysm - Dark Days Ahead. A turn-based survival game set in a post-apocalyptic world.
http://cataclysmdda.org
Other
10.34k stars 4.14k forks source link

Case-insensitive Unicode search does not work in Windows MinGW builds #48699

Open olanti-p opened 3 years ago

olanti-p commented 3 years ago

Describe the bug

Case-insensitive Unicode search does not work in Windows MinGW builds

Steps To Reproduce

  1. Switch language to Russian, restart the game
  2. Load any world, debug learn all recipes
  3. Open crafting menu, enter катана, see 1 result
  4. Enter Катана, see no matches

Similar behavior can be seen in keybindings menu when searching меню vs Меню.

Expected behavior

Both searches give 1 match, as on Visual Studio build

Screenshots

катана image Катана image Катана on my local VS build image

Versions and configuration

Additional context

Problem with std::locale? Brief googling showed that MinGW supported only C/POSIX C++ locales in the past, not sure if that changed.

actual-nh commented 3 years ago

Ping: @BrettDong?