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

Invalid diff format under Chinese locale

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.x
    • ---
    • libsvn_diff
    • None

    Description

      This issue was first reported on the user mailing list:
      http://svn.haxx.se/users/archive-2007-08/0427.shtml.
      
      For convenience, here is the text of the message again:
      
      Hi there,
      
      I received a diff file from a Chinese user of Subversion, the relevant
      bit is as follows, which is the end of one diff segment, and the start
      of another:
      
      #endif
      \  $B:_J87o (B
        $BKvHxKWM-?79T (BIndex: src/file.cpp
      
      The Chinese is the translation of "No newline at end of file".
      
      My question is, why does this sentence have a newline in the middle of
      it? Also the "Index:" text doesn't start at the beginning of a
      newline.
      
      To be properly formatted as a diff, I would have thought this should be:
      
      #endif
      \  $B:_J87oKvHxKWM-?79T (B
      Index: src/file.cpp
      
      Is this a bug?
      
      This came up, as I am the author of Codestriker, which is a web
      application for code reviewing. As input, it can receive diff files
      from different SCMs, including Subversion. This diff came up which it
      couldn't parse, because of this extra newline.
      
      Cheers,
      David
      

      Original issue reported by sits

      Attachments

        Activity

          People

            Unassigned Unassigned
            subversion-importer Subversion Importer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: