summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/Core.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Core/Core.cpp b/Source/Core/Core/Core.cpp
index 6eba2560cf..c32b0b6d33 100644
--- a/Source/Core/Core/Core.cpp
+++ b/Source/Core/Core/Core.cpp
@@ -5,8 +5,8 @@
#include "Core/Core.h"
#include <atomic>
-#include <cctype>
#include <cstring>
+#include <locale>
#include <mutex>
#include <queue>
#include <utility>
@@ -178,7 +178,7 @@ void DisplayMessage(const std::string& message, int time_in_ms)
// Actually displaying non-ASCII could cause things to go pear-shaped
for (const char& c : message)
{
- if (!std::isprint(c))
+ if (!std::isprint(c, std::locale::classic()))
return;
}