diff options
Diffstat (limited to 'cpp/src/IceGrid/Parser.cpp')
-rw-r--r-- | cpp/src/IceGrid/Parser.cpp | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/cpp/src/IceGrid/Parser.cpp b/cpp/src/IceGrid/Parser.cpp index 3a0dc32674b..b1792e8ffe8 100644 --- a/cpp/src/IceGrid/Parser.cpp +++ b/cpp/src/IceGrid/Parser.cpp @@ -2810,7 +2810,13 @@ void Parser::error(const char* s) { - cerr << "error: " << toConsoleEncoding(s) << endl; + cerr << "error: " +#ifdef _WIN32 + << toConsoleEncoding(s) +#else + << s +#endif + << endl; _errors++; } @@ -2823,7 +2829,13 @@ Parser::error(const string& s) void Parser::warning(const char* s) { - cerr << "warning: " << toConsoleEncoding(s) << endl; + cerr << "warning: " +#ifdef _WIN32 + << toConsoleEncoding(s) +#else + << s +#endif + << endl; } void |