std::filesystem::path does not expect UTF-8 strings, so they must be converted to native format first (and back to utf-8 after.)
This commit is contained in:
@@ -386,7 +386,7 @@ void ReconsiderGameScriptLanguage()
|
||||
{
|
||||
if (_current_data == nullptr) return;
|
||||
|
||||
std::string language = _current_language->file.stem().string();
|
||||
std::string language = FS2OTTD(_current_language->file.stem());
|
||||
for (auto &p : _current_data->compiled_strings) {
|
||||
if (p.language == language) {
|
||||
_current_data->cur_language = &p;
|
||||
|
||||
Reference in New Issue
Block a user