(Windows) Fixed an issue where attempting to capitalize multi-byte Unicode strings crashed the application if built using the MSVC compiler

This commit is contained in:
Leon Styhre 2023-07-28 21:46:24 +02:00
parent 3b62dc6ee7
commit 768539e8e7

View file

@ -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);