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/imap/IMAPMessage.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/net/imap/IMAPMessage.cpp') diff --git a/src/net/imap/IMAPMessage.cpp b/src/net/imap/IMAPMessage.cpp index 47e77de4..11c2bea2 100644 --- a/src/net/imap/IMAPMessage.cpp +++ b/src/net/imap/IMAPMessage.cpp @@ -409,6 +409,7 @@ void IMAPMessage::extract(ref p, utility::outputStream& os, // Construct section identifier std::ostringstream section; + section.imbue(std::locale::classic()); if (p != NULL) { @@ -435,6 +436,7 @@ void IMAPMessage::extract(ref p, utility::outputStream& os, // Build the request text std::ostringstream command; + command.imbue(std::locale::classic()); command << "FETCH " << m_num << " BODY"; if (peek) command << ".PEEK"; @@ -545,6 +547,8 @@ void IMAPMessage::processFetchResponse case IMAPParser::msg_att_item::UID: { std::ostringstream oss; + oss.imbue(std::locale::classic()); + oss << folder->m_uidValidity << ":" << (*it)->unique_id()->value(); m_uid = oss.str(); @@ -685,6 +689,8 @@ void IMAPMessage::setFlags(const int flags, const int mode) // Build the request text std::ostringstream command; + command.imbue(std::locale::classic()); + command << "STORE " << m_num; switch (mode) -- cgit v1.2.3