From 994cb52cea87a95f5ef48877f4ecded0f70d1a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Brammer?= Date: Mon, 2 May 2016 00:35:23 +0200 Subject: [PATCH] C4AulParse: Don't escape spaces in bytecode dumps of strings --- src/script/C4AulParse.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/script/C4AulParse.cpp b/src/script/C4AulParse.cpp index 68cba380c..34ce0b82c 100644 --- a/src/script/C4AulParse.cpp +++ b/src/script/C4AulParse.cpp @@ -662,7 +662,7 @@ void C4AulScriptFunc::DumpByteCode() const StdStrBuf &s = bcc.Par.s->GetData(); std::string es; std::for_each(s.getData(), s.getData() + s.getLength(), [&es](char c) { - if (std::isgraph((unsigned char)c)) + if (std::isprint((unsigned char)c)) { es += c; }