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/dateTime.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/dateTime.cpp') 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 << ":" -- cgit v1.2.3