Changeset 279

Show
Ignore:
Timestamp:
01/22/2007 06:12:52 PM
Author:
luedi
Message:

fixed encoding for labels and renamed files:
moved all "Encode::decode_utf8" to vss2svn.pl, before any automatic conversion takes place due to string operations.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/script/Vss2Svn/Dumpfile.pm

    r278 r279  
    33use Vss2Svn::Dumpfile::Node; 
    44use Vss2Svn::Dumpfile::SanityChecker; 
    5 require Encode; 
    65 
    76use warnings; 
     
    8786    $author = '' if !defined($author); 
    8887 
    89     $comment = Encode::decode_utf8( $comment ); 
    90     $author = Encode::decode_utf8( $author ); 
    91  
    9288    if ($revision > 0) { 
    9389        push @$props, ['svn:log', $comment]; 
     
    130126#            return 0; 
    131127#        } 
    132              
     128 
    133129        $handler = $gHandlers{$this_action}; 
    134130 
     
    539535 
    540536    my $label = $data->{info}; 
    541     $label = Encode::decode_utf8( $label ); 
    542537 
    543538    # It is possible that the label was deleted later, so we see here a label 
  • trunk/script/vss2svn.pl

    r276 r279  
    713713        } 
    714714 
    715         $row->{itemname} = Encode::decode_utf8( $row->{itemname} ); 
     715        $row->{itemname} = Encode::decode_utf8( $row->{itemname} ); 
     716        $row->{info} = Encode::decode_utf8( $row->{info} ); 
     717        $row->{comment} = Encode::decode_utf8( $row->{comment} ); 
     718        $row->{author} = Encode::decode_utf8( $row->{author} ); 
     719        $row->{label} = Encode::decode_utf8( $row->{label} ); 
    716720 
    717721        # The handler's job is to keep track of physical-to-real name mappings 

PumaCode.org recommends CVSDude for fast, professional Subversion and Trac hosting:

CVSDude.com

These ads are automatically generated by Google. Revenue from these ads helps to pay for hosting this site; however, these ads do not constitute an endorsement by PumaCode.org.