Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-3338

Inconsistent line endings when diffing svn:eol-style native file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • trunk
    • unscheduled
    • libsvn_diff
    • None

    Description

      On Windows (but probably also on other platforms):
      When diffing a file with svn:eol-style set to native and containing "\r\n" line 
      endings you get a diff containing "\r\n" line endings in the header and 
      just "\n" in the context lines.
      
      Expected behavior:
      Consistent line endings; preferably with the native line endings (or 
      configurable line endings).
      
      (output_line in diff_file.c outputs the line endings from the diffed file, not 
      apr; which in this case is the normalized file).
      
      It would be easy to workaround via a simple stream transformation, but the diff 
      library still uses apr_file_t instead of svn_stream_t.
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhuijben Bert Huijben
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: