HM-SPMS/platform/src/3rd/src_package/log4cplus/consoleappender.cxx.patch

17 lines
973 B
Diff
Raw Normal View History

2025-03-12 11:08:50 +08:00
--- E:/svn/ISCS6000/Development_Repository/ISCS6000_HOME/src/3rd/src_package/log4cplus/log4cplus_original/log4cplus-REL_1_2_1-RC2/src/consoleappender.cxx <09>ܶ<EFBFBD> 5<><35> 29 10:02:10 2018
+++ E:/svn/ISCS6000/Development_Repository/ISCS6000_HOME/src/3rd/src_package/log4cplus/log4cplus-REL_1_2_1-RC2/src/consoleappender.cxx <09>ܶ<EFBFBD> 5<><35> 29 10:17:01 2018
@@ -29,0 +30 @@
+#include "boost/locale.hpp"
@@ -103,0 +105,8 @@ ConsoleAppender::append(const spi::InternalLogging
+ log4cplus::tstring strMsg = event.getMessage();
+ std::string strCodePage = boost::locale::util::get_system_locale();
+ std::locale loc = boost::locale::generator().generate(strCodePage);
+ log4cplus::tstring strTemp = boost::locale::conv::from_utf(strMsg, loc);
+
+ spi::InternalLoggingEvent objEv = event;
+ objEv.setMessage(strTemp);
+
@@ -105 +114 @@ ConsoleAppender::append(const spi::InternalLogging
- layout->formatAndAppend(output, event);
+ layout->formatAndAppend(output, objEv);