Log4cxx
  1. Log4cxx
  2. LOGCXX-63

Platform appropriate line-feed convention

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major 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.

        Activity

        There are no comments yet on this issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development