summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/ThreadPool.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2014-05-02 19:56:38 +0200
committerJose <jose@zeroc.com>2014-05-02 19:56:38 +0200
commit1161c5817059464ab511632c0ce5d14593ced1a3 (patch)
tree51bbcdf2a4ea43c430312157350bb4271bc3f40d /cpp/src/Ice/ThreadPool.cpp
parentUpdate .gitignore files (diff)
downloadice-1161c5817059464ab511632c0ce5d14593ced1a3.tar.bz2
ice-1161c5817059464ab511632c0ce5d14593ced1a3.tar.xz
ice-1161c5817059464ab511632c0ce5d14593ced1a3.zip
ICE-4851 - Use wstrings for input and output data that contain non-ASCII characters?
Diffstat (limited to 'cpp/src/Ice/ThreadPool.cpp')
-rw-r--r--cpp/src/Ice/ThreadPool.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/cpp/src/Ice/ThreadPool.cpp b/cpp/src/Ice/ThreadPool.cpp
index bdfe1a095ac..61415da250a 100644
--- a/cpp/src/Ice/ThreadPool.cpp
+++ b/cpp/src/Ice/ThreadPool.cpp
@@ -950,8 +950,13 @@ IceInternal::ThreadPool::run(const EventHandlerThreadPtr& thread)
#ifdef ICE_OS_WINRT
catch(Platform::Exception^ ex)
{
+ //
+ // We don't need to pass the wide string converter in the call to wnativeToNative
+ // because the wide string is using the platform default encoding.
+ //
Error out(_instance->initializationData().logger);
- out << "exception in `" << _prefix << "':\n" << IceUtil::wstringToString(ex->Message->Data())
+ out << "exception in `" << _prefix << "':\n"
+ << IceUtil::wnativeToNative(_instance->getStringConverter(), 0, ex->Message->Data())
<< "\nevent handler: " << current._handler->toString();
}
#endif