summaryrefslogtreecommitdiff
path: root/cpp/src/slice2py/Main.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-01-09 17:01:31 +0100
committerJose <jose@zeroc.com>2017-01-09 17:01:31 +0100
commitd4ed7973f1824478477be29989fc125b04207494 (patch)
treeec488f46a0ee15f987a0a24c87d1fe0a999cc168 /cpp/src/slice2py/Main.cpp
parentIceSSL C#/Java test fixes to sync with C++ changes (diff)
downloadice-d4ed7973f1824478477be29989fc125b04207494.tar.bz2
ice-d4ed7973f1824478477be29989fc125b04207494.tar.xz
ice-d4ed7973f1824478477be29989fc125b04207494.zip
Fixed (ICE-6694) - Unicode output in command line tools
Diffstat (limited to 'cpp/src/slice2py/Main.cpp')
-rw-r--r--cpp/src/slice2py/Main.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/cpp/src/slice2py/Main.cpp b/cpp/src/slice2py/Main.cpp
index 39e103cfb4e..d98fab29725 100644
--- a/cpp/src/slice2py/Main.cpp
+++ b/cpp/src/slice2py/Main.cpp
@@ -9,10 +9,12 @@
#include <Slice/PythonUtil.h>
#include <Slice/Util.h>
+#include <IceUtil/ConsoleUtil.h>
using namespace std;
using namespace Slice;
using namespace Slice::Python;
+using namespace IceUtilInternal;
#ifdef _WIN32
int wmain(int argc, wchar_t* argv[])
@@ -27,22 +29,22 @@ int main(int argc, char* argv[])
}
catch(const std::exception& ex)
{
- getErrorStream() << args[0] << ": error:" << ex.what() << endl;
+ consoleErr << args[0] << ": error:" << ex.what() << endl;
return EXIT_FAILURE;
}
catch(const std::string& msg)
{
- getErrorStream() << args[0] << ": error:" << msg << endl;
+ consoleErr << args[0] << ": error:" << msg << endl;
return EXIT_FAILURE;
}
catch(const char* msg)
{
- getErrorStream() << args[0] << ": error:" << msg << endl;
+ consoleErr << args[0] << ": error:" << msg << endl;
return EXIT_FAILURE;
}
catch(...)
{
- getErrorStream() << args[0] << ": error:" << "unknown exception" << endl;
+ consoleErr << args[0] << ": error:" << "unknown exception" << endl;
return EXIT_FAILURE;
}
}