From 171969f5fb9c3cc01606c260c249955f73ce9c51 Mon Sep 17 00:00:00 2001 From: Ted John Date: Thu, 9 Jan 2020 20:47:54 +0000 Subject: [PATCH] Fix #10496: Game can't handle path with non-english string --- src/openrct2/core/Path.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/core/Path.cpp b/src/openrct2/core/Path.cpp index 2206901ef6..3be125d853 100644 --- a/src/openrct2/core/Path.cpp +++ b/src/openrct2/core/Path.cpp @@ -144,7 +144,7 @@ namespace 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)