expand_unprintable: use iscntrl rather than isprint which does not work as expected

This commit is contained in:
Maxime Coste 2013-07-18 21:58:11 +02:00
parent c58bab0f66
commit 5a6922a045

View File

@ -315,7 +315,7 @@ void expand_unprintable(const Window& window, DisplayBuffer& display_buffer)
end = buffer.iterator_at(atom_it->content.end()); it != end; ++it)
{
Codepoint cp = *it;
if (cp != '\n' and not isprint((int)cp))
if (cp != '\n' and iscntrl((int)cp))
{
std::ostringstream oss;
oss << "U+" << std::hex << cp;