From 768539e8e7ddc286e1e68d408f89c1cb6469f263 Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Fri, 28 Jul 2023 21:46:24 +0200 Subject: [PATCH] (Windows) Fixed an issue where attempting to capitalize multi-byte Unicode strings crashed the application if built using the MSVC compiler --- es-core/src/utils/StringUtil.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es-core/src/utils/StringUtil.cpp b/es-core/src/utils/StringUtil.cpp index e6a053183..0a1ed8dba 100644 --- a/es-core/src/utils/StringUtil.cpp +++ b/es-core/src/utils/StringUtil.cpp @@ -551,7 +551,7 @@ namespace Utils std::string line {stringArg}; bool active {true}; - for (auto& chr : line) { + for (unsigned char chr : line) { if (std::isalnum(chr)) { if (active) { chr = std::toupper(chr);