StringUtil: Fix a ctype assertion

This commit is contained in:
Sepalani 2017-04-06 15:02:21 +01:00
parent 36ab5eafcf
commit c170659189
1 changed files with 2 additions and 1 deletions

View File

@ -12,6 +12,7 @@
#include <istream>
#include <iterator>
#include <limits.h>
#include <locale>
#include <sstream>
#include <string>
#include <vector>
@ -63,7 +64,7 @@ std::string HexDump(const u8* data, size_t size)
if (row_start + i < size)
{
char c = static_cast<char>(data[row_start + i]);
out += StringFromFormat("%c", isprint(c) ? c : '.');
out += std::isprint(c, std::locale::classic()) ? c : '.';
}
}
out += "\n";