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

UTF-8 build fails on Linux

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 0.10.0
    • 0.10.0
    • Build
    • None
    • Debian GNU/Linux 3.1, gcc 4.0

    Description

      UTF8 build fails in simpledateformat.cpp on Linux. Caused by an incompatibility between localechar (which is defined as wchar_t in this case) and LogChar (which is defined as char for UTF8 build). localechar is only used within simpledateformat, but the method PatternToken::format() which caused the failure is exposed in the header file. Solution is to move the PatternFormat class inside simpledateformat.cpp so that the method can be changed to have basic_string<localechar>& as parameter instead of LogString&.

      Attachments

        Activity

          People

            carnold@apache.org Curt Arnold
            andreas Andreas Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: