From d4ed7973f1824478477be29989fc125b04207494 Mon Sep 17 00:00:00 2001 From: Jose Date: Mon, 9 Jan 2017 17:01:31 +0100 Subject: Fixed (ICE-6694) - Unicode output in command line tools --- cpp/src/Slice/FileTracker.cpp | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'cpp/src/Slice/FileTracker.cpp') diff --git a/cpp/src/Slice/FileTracker.cpp b/cpp/src/Slice/FileTracker.cpp index e57de914e31..fbba124fc3b 100644 --- a/cpp/src/Slice/FileTracker.cpp +++ b/cpp/src/Slice/FileTracker.cpp @@ -7,7 +7,9 @@ // // ********************************************************************** + #include +#include #ifdef _WIN32 # include @@ -15,6 +17,7 @@ # include #endif +using namespace IceUtilInternal; using namespace std; Slice::FileException::FileException(const char* file, int line, const string& r) : @@ -149,30 +152,30 @@ Slice::FileTracker::cleanup() void Slice::FileTracker::dumpxml() { - cout << "" << endl; + consoleOut << "" << endl; - cout << "" << endl; + consoleOut << "" << endl; for(map::const_iterator p = _errors.begin(); p != _errors.end(); ++p) { - cout << " first << "\""; + consoleOut << " first << "\""; map >::const_iterator q = _generated.find(p->first); if(q == _generated.end()) { - cout << " error=\"true\">" << endl; + consoleOut << " error=\"true\">" << endl; } else { - cout << ">" << endl; + consoleOut << ">" << endl; for(list::const_iterator r = q->second.begin(); r != q->second.end(); ++r) { - cout << " " << endl; + consoleOut << " " << endl; } } - cout << " " << escape(p->second) << "" << endl; - cout << " " << endl; + consoleOut << " " << escape(p->second) << "" << endl; + consoleOut << " " << endl; } - cout << "" << endl; + consoleOut << "" << endl; } string -- cgit v1.2.3