From f99fc84915e4bcd2750b7fadfb24f858ccc7e5ef Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Wed, 8 Nov 2006 18:33:18 +0000 Subject: Imbue classic 'C' locale for the output of message parts and protocol commands. --- src/net/pop3/POP3Folder.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/net/pop3/POP3Folder.cpp') diff --git a/src/net/pop3/POP3Folder.cpp b/src/net/pop3/POP3Folder.cpp index 7ef4aa12..e19adea0 100644 --- a/src/net/pop3/POP3Folder.cpp +++ b/src/net/pop3/POP3Folder.cpp @@ -443,6 +443,8 @@ void POP3Folder::fetchMessage(ref msg, const int options) { // Send the "LIST" command std::ostringstream command; + command.imbue(std::locale::classic()); + command << "LIST " << msg->getNumber(); store->sendRequest(command.str()); @@ -479,6 +481,8 @@ void POP3Folder::fetchMessage(ref msg, const int options) { // Send the "UIDL" command std::ostringstream command; + command.imbue(std::locale::classic()); + command << "UIDL " << msg->getNumber(); store->sendRequest(command.str()); @@ -566,6 +570,8 @@ void POP3Folder::deleteMessage(const int num) throw exceptions::illegal_state("Folder not open"); std::ostringstream command; + command.imbue(std::locale::classic()); + command << "DELE " << num; store->sendRequest(command.str()); @@ -615,6 +621,8 @@ void POP3Folder::deleteMessages(const int from, const int to) for (int i = from ; i <= to2 ; ++i) { std::ostringstream command; + command.imbue(std::locale::classic()); + command << "DELE " << i; store->sendRequest(command.str()); @@ -666,6 +674,8 @@ void POP3Folder::deleteMessages(const std::vector & nums) it = nums.begin() ; it != nums.end() ; ++it) { std::ostringstream command; + command.imbue(std::locale::classic()); + command << "DELE " << (*it); store->sendRequest(command.str()); -- cgit v1.2.3