Log4cxx
  1. Log4cxx
  2. LOGCXX-253

Transcoder compilation error with utf-8 charset

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0
    • Fix Version/s: 0.10.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      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)

      1. transcoder.patch
        0.5 kB
        Kirill Sharov

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Curt Arnold
            Reporter:
            Kirill Sharov
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development