Fix --dump output
This commit is contained in:
parent
da4fc25fee
commit
ecfb4fd26c
|
@ -547,7 +547,7 @@ std::string ErrorLogger::toxml(const std::string &str)
|
||||||
{
|
{
|
||||||
std::ostringstream xml;
|
std::ostringstream xml;
|
||||||
for (std::size_t i = 0U; i < str.length(); i++) {
|
for (std::size_t i = 0U; i < str.length(); i++) {
|
||||||
char c = str[i];
|
unsigned char c = str[i];
|
||||||
switch (c) {
|
switch (c) {
|
||||||
case '<':
|
case '<':
|
||||||
xml << "<";
|
xml << "<";
|
||||||
|
@ -565,7 +565,7 @@ std::string ErrorLogger::toxml(const std::string &str)
|
||||||
xml << "\\0";
|
xml << "\\0";
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
if (c >= ' ' && c <= 'z')
|
if (c >= ' ' && c <= 0x7f)
|
||||||
xml << c;
|
xml << c;
|
||||||
else
|
else
|
||||||
xml << 'x';
|
xml << 'x';
|
||||||
|
|
Loading…
Reference in New Issue