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

cvs2svn doesn't take care of UTF-8 conversion on file names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • all
    • cvs2svn-1.0
    • tools
    • None

    Description

      I created a dump file from CVS on a linux machine "cvs2svn --dump-only
      /home/cvsrepos/TestCVS". I also tried "--encoding=utf-8" with the same result.
      Then I imported that dump file on a windows machine with subversion
      (version 0.34). The svnadmin load works OK, but it corrupts the
      swedish characters in the filename. If I later browse the repository
      via http, it works and I can look at the file but the filename looks
      like shit. The command line svn tool on the other hand can't handle
      these filenames in any way, so I can't rename or delete them in the
      repository.
      
      When i write "svn list http://localhost/svn/TestCVS/trunk", the svn
      client says:
      svn: Invalid argument
      svn: Safe data:
      "TestFileWith"
      ... was followed by non-ascii byte 229.
      
      Non-ascii character detected (see above), and unable to convert
      to/from UTF-8.
      
      
      I created a really small dump file from a CVS repos with just one file
      (with my swedish characters), if some of you want to recreate the
      problem. The file (as well as the RCS file) is pasted below.
       
      Thanks for a really great product!
      Regards
      David
      
      ---BEGIN---
      SVN-fs-dump-format-version: 2
      
      UUID: ????????-????-????-????-????????????
      
      Revision-number: 1
      Prop-content-length: 136
      Content-length: 136
      
      K 7
      svn:log
      V 33
      Uppdaterad med septembersupport.
      
      K 10
      svn:author
      V 8
      bmolpeno
      K 8
      svn:date
      V 27
      2003-12-18T11:49:12.000000Z
      PROPS-END
      
      Node-path: trunk
      Node-kind: dir
      Node-action: add
      Prop-content-length: 10
      Content-length: 10
      
      PROPS-END
      
      
      Node-path: trunk/TestFileWithåäöÅÄÖ.txt
      Node-kind: file
      Node-action: add
      Prop-content-length: 10
      Text-content-length:               30
      Text-content-md5: 4e643efabb990d79fb2211c8c561dbac
      Content-length:               40
      
      PROPS-END
      Test file
      åäö
      ÅÄÖ
      End of file.
      ---END---
      
      ---TestCVS/TestFileWithåäöÅÄÖ.txt,v BEGIN---
      head    1.1;
      access;
      symbols;
      locks; strict;
      comment @# @;
      
      
      1.1
      date    2003.12.18.11.49.12;    author bmolpeno;        state Exp;
      branches;
      next    ;
      
      
      desc
      @@
      
      
      1.1
      log
      @Uppdaterad med septembersupport.
      @
      text
      @Test file
      åäö
      ÅÄÖ
      End of file.@
      ---END---
      

      Original issue reported by dala

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: