From 8e919d2f846c7d802ce12914e457d9f11557a733 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Mon, 14 May 2018 23:23:27 +0200 Subject: [PATCH] Change ICU variant of String::ToUpper for string_view argument. --- src/openrct2/core/String.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2/core/String.cpp b/src/openrct2/core/String.cpp index 0eacccdb85..9600029994 100644 --- a/src/openrct2/core/String.cpp +++ b/src/openrct2/core/String.cpp @@ -695,7 +695,7 @@ namespace String log_warning("LCMapStringEx loop exceeded"); return std::string(src); #else - icu::UnicodeString str = icu::UnicodeString::fromUTF8(src); + icu::UnicodeString str = icu::UnicodeString::fromUTF8(std::string(src)); str.toUpper(); std::string res;