diff options
author | Jose <jose@zeroc.com> | 2017-01-09 17:01:31 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-01-09 17:01:31 +0100 |
commit | d4ed7973f1824478477be29989fc125b04207494 (patch) | |
tree | ec488f46a0ee15f987a0a24c87d1fe0a999cc168 /cpp/src/Slice/Preprocessor.cpp | |
parent | IceSSL C#/Java test fixes to sync with C++ changes (diff) | |
download | ice-d4ed7973f1824478477be29989fc125b04207494.tar.bz2 ice-d4ed7973f1824478477be29989fc125b04207494.tar.xz ice-d4ed7973f1824478477be29989fc125b04207494.zip |
Fixed (ICE-6694) - Unicode output in command line tools
Diffstat (limited to 'cpp/src/Slice/Preprocessor.cpp')
-rw-r--r-- | cpp/src/Slice/Preprocessor.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/cpp/src/Slice/Preprocessor.cpp b/cpp/src/Slice/Preprocessor.cpp index 2e0192edab9..03815d4b4d6 100644 --- a/cpp/src/Slice/Preprocessor.cpp +++ b/cpp/src/Slice/Preprocessor.cpp @@ -13,6 +13,7 @@ #include <IceUtil/StringConverter.h> #include <IceUtil/FileUtil.h> #include <IceUtil/UUID.h> +#include <IceUtil/ConsoleUtil.h> #include <algorithm> #include <iterator> #include <vector> @@ -27,6 +28,7 @@ using namespace std; using namespace Slice; +using namespace IceUtilInternal; // // mcpp defines @@ -274,10 +276,7 @@ Slice::Preprocessor::preprocess(bool keepComments, const vector<string>& extraAr } else { - ostream& os = getErrorStream(); - os << _path << ": error: could not open temporary file: "; - os << _cppFile; - os << endl; + consoleErr << _path << ": error: could not open temporary file: " << _cppFile << endl; } } @@ -764,14 +763,14 @@ Slice::Preprocessor::checkInputFile() } if(suffix != ".ice") { - getErrorStream() << _path << ": error: input files must end with `.ice'" << endl; + consoleErr << _path << ": error: input files must end with `.ice'" << endl; return false; } ifstream test(IceUtilInternal::streamFilename(_fileName).c_str()); if(!test) { - getErrorStream() << _path << ": error: cannot open `" << _fileName << "' for reading" << endl; + consoleErr << _path << ": error: cannot open `" << _fileName << "' for reading" << endl; return false; } test.close(); |