Uploaded image for project: 'Log4cxx'
  1. Log4cxx
  2. LOGCXX-253

Transcoder compilation error with utf-8 charset

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 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)

      Attachments

        1. transcoder.patch
          0.5 kB
          Kirill Sharov

        Activity

          People

            carnold@apache.org Curt Arnold
            sharok Kirill Sharov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: