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/dateTime.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/dateTime.cpp')
-rw-r--r-- | src/dateTime.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dateTime.cpp b/src/dateTime.cpp index 09202bdb..2bba3322 100644 --- a/src/dateTime.cpp +++ b/src/dateTime.cpp @@ -600,6 +600,8 @@ void datetime::generate(utility::outputStream& os, const string::size_type /* ma const int zm = z % 60; std::ostringstream oss; + oss.imbue(std::locale::classic()); + oss << dayNames[getWeekDay()] << ", " << m_day << " " << monthNames[m_month - 1] << " " << m_year << " " << std::setfill('0') << std::setw(2) << m_hour << ":" |