From 44196f6a55ef89db917075fb5d7beeda4635b0fa Mon Sep 17 00:00:00 2001 From: Sepalani Date: Mon, 30 Jan 2017 22:49:21 +0000 Subject: [PATCH] Fixes std::isprint undefined behavior --- Source/Core/Core/Core.cpp | 4 ++-- 1 file 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 -#include #include +#include #include #include #include @@ -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; }