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

Platform appropriate line-feed convention

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.7
    • 0.10.0
    • Appender
    • None

    Description

      Existing layouts use line-feed characters to indicate end-of-line for all platforms. Some Windows applications are tolerant of this convention, but others, such as Notepad, will not properly display files that do not use carriage-return/line-feed pairs to indicate end of line.

      This fix introduces a preprocessor macro LOG4CXX_EOL that evaluates to a character literal with the appropriate end-of-line sequence. Also modifies StringHelper::getline to accept either Unix or Windows style EOL's.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: