1.log4cplus源码打开property.cxx;
2.找到void imbue_file_from_flags (tistream & file, unsigned flags)函数;
3.在函数最后面添加file.imbue(std::locale("chs"));也就是将读取流file的区域属性设置为支持中文字符集;
4.重新生成dll,搞掂收工。
1.log4cplus源码打开property.cxx;
2.找到void imbue_file_from_flags (tistream & file, unsigned flags)函数;
3.在函数最后面添加file.imbue(std::locale("chs"));也就是将读取流file的区域属性设置为支持中文字符集;
4.重新生成dll,搞掂收工。