aboutsummaryrefslogtreecommitdiffstats
path: root/src/platforms/posix/posixSocket.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/platforms/posix/posixSocket.cpp')
-rw-r--r--src/platforms/posix/posixSocket.cpp2
1 files changed, 2 insertions, 0 deletions
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;