Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
0.10.0
-
None
-
None
-
Gentoo 2.6.23 / gcc 4.1.2
log4cxx rev 639220
Description
When log4cxx is configured to use utf-8 charset (configure --with-charset=utf-8 --with-logchar=utf-8) compiler throws error:
transcoder.cpp:274: error: invalid initialization of reference of type 'std::string&' from expression of type 'const std::basic_string<char, std::char_traits<char>, std::allocator<char> >'
The relevant patch is attached. It makes the function similar to char* Transcoder::encodeUTF8(const LogString& src, Pool& p)