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

Platform appropriate line-feed convention

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.9.7
    • Fix Version/s: 0.10.0
    • Component/s: Appender
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: