diff options
Diffstat (limited to '')
-rw-r--r-- | src/platforms/posix/posixChildProcess.cpp | 2 | ||||
-rw-r--r-- | src/platforms/posix/posixSocket.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/platforms/posix/posixChildProcess.cpp b/src/platforms/posix/posixChildProcess.cpp index bbeaa497..aded6a6e 100644 --- a/src/platforms/posix/posixChildProcess.cpp +++ b/src/platforms/posix/posixChildProcess.cpp @@ -376,6 +376,8 @@ void posixChildProcess::waitForFinish() else { std::ostringstream oss; + oss.imbue(std::locale::classic()); + oss << "Process exited with status " << WEXITSTATUS(wstat); throw exceptions::system_error(oss.str()); diff --git a/src/platforms/posix/posixSocket.cpp b/src/platforms/posix/posixSocket.cpp index e63e4674..14f8f103 100644 --- a/src/platforms/posix/posixSocket.cpp +++ b/src/platforms/posix/posixSocket.cpp @@ -78,6 +78,8 @@ void posixSocket::connect(const vmime::string& address, const vmime::port_t port hints.ai_socktype = SOCK_STREAM; std::ostringstream portStr; + portStr.imbue(std::locale::classic()); + portStr << port; struct ::addrinfo* res0; |