diff --git a/base/internal/message.cpp b/base/internal/message.cpp index 7e91e1030c..9ad3655788 100644 --- a/base/internal/message.cpp +++ b/base/internal/message.cpp @@ -2,21 +2,22 @@ string DebugPrint(string const & t) { - string res; - res.push_back('\''); - for (string::const_iterator it = t.begin(); it != t.end(); ++it) - { - static char const toHex[] = "0123456789abcdef"; - unsigned char const c = static_cast(*it); - if (c >= ' ' && c <= '~') - res.push_back(*it); - else - { - res.push_back('\\'); - res.push_back(toHex[c >> 4]); - res.push_back(toHex[c & 0xf]); - } - } - res.push_back('\''); - return res; +// string res; +// res.push_back('\''); +// for (string::const_iterator it = t.begin(); it != t.end(); ++it) +// { +// static char const toHex[] = "0123456789abcdef"; +// unsigned char const c = static_cast(*it); +// if (c >= ' ' && c <= '~') +// res.push_back(*it); +// else +// { +// res.push_back('\\'); +// res.push_back(toHex[c >> 4]); +// res.push_back(toHex[c & 0xf]); +// } +// } +// res.push_back('\''); + // Simply print UTF-8 string. Our computers (finally) supports it. + return t; }