Fix formatting hex strings in isoltest update

This commit is contained in:
Alex Beregszaszi 2020-07-13 19:05:34 +01:00
parent 289fc7a9d0
commit 6a1ad7e59c

View File

@ -22,6 +22,7 @@
#include <liblangutil/Common.h> #include <liblangutil/Common.h>
#include <libsolutil/CommonData.h>
#include <libsolutil/StringUtils.h> #include <libsolutil/StringUtils.h>
#include <boost/algorithm/string.hpp> #include <boost/algorithm/string.hpp>
@ -198,8 +199,7 @@ string BytesUtils::formatString(bytes const& _bytes, size_t _cutOff)
if (isprint(v)) if (isprint(v))
os << v; os << v;
else else
os << "\\x" << setw(2) << setfill('0') << hex << v; os << "\\x" << toHex(v);
} }
} }
os << "\""; os << "\"";