1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Fix #10496: Game can't handle path with non-english string

This commit is contained in:
Ted John
2020-01-09 20:47:54 +00:00
parent 8893d998b8
commit 171969f5fb

View File

@@ -144,7 +144,7 @@ namespace Path
const std::string GetExtension(const std::string& path) const std::string GetExtension(const std::string& path)
{ {
return fs::path{ path }.extension().string(); return fs::u8path(path).extension().string();
} }
const utf8* GetExtension(const utf8* path) const utf8* GetExtension(const utf8* path)