diff options
author | Vincent Richard <[email protected]> | 2006-11-08 18:33:18 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2006-11-08 18:33:18 +0000 |
commit | f99fc84915e4bcd2750b7fadfb24f858ccc7e5ef (patch) | |
tree | b3c8fa78d8b145ff04aca8b17a4a74dbc348cd15 /src/net/imap/IMAPMessage.cpp | |
parent | Fixed compilation problem with GCC 3.3. (diff) | |
download | vmime-f99fc84915e4bcd2750b7fadfb24f858ccc7e5ef.tar.gz vmime-f99fc84915e4bcd2750b7fadfb24f858ccc7e5ef.zip |
Imbue classic 'C' locale for the output of message parts and protocol commands.
Diffstat (limited to 'src/net/imap/IMAPMessage.cpp')
-rw-r--r-- | src/net/imap/IMAPMessage.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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 <const part> 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 <const part> 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) |