diff --git a/Source/Core/Common/StringUtil.cpp b/Source/Core/Common/StringUtil.cpp index da1feb033e..186c730b03 100644 --- a/Source/Core/Common/StringUtil.cpp +++ b/Source/Core/Common/StringUtil.cpp @@ -12,6 +12,7 @@ #include #include #include +#include #include #include #include @@ -63,7 +64,7 @@ std::string HexDump(const u8* data, size_t size) if (row_start + i < size) { char c = static_cast(data[row_start + i]); - out += StringFromFormat("%c", isprint(c) ? c : '.'); + out += std::isprint(c, std::locale::classic()) ? c : '.'; } } out += "\n";