Ignore:
Timestamp:
2008-07-29T13:29:21+12:00 (16 years ago)
Author:
ak19
Message:

Shared subroutine tmp_area_convert_file now ensures that the tailname of the file is utf8 by calling superclass BasePlugin's filepath_to_utf8 on it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gsdl/trunk/perllib/plugins/ConvertBinaryFile.pm

    r16392 r16580  
    278278    # convert to utf-8 otherwise we have problems with the doc.xml file
    279279    # later on
    280     &unicode::ensure_utf8(\$tailname);
     280    print STDERR "**** filename $tailname$suffix is already UTF8\n" if &unicode::check_is_utf8($tailname);
     281    $tailname = $self->SUPER::filepath_to_utf8($tailname) unless &unicode::check_is_utf8($tailname);
    281282
    282283    $suffix = lc($suffix);
     
    375376    my $conv_filename = "";
    376377    $conv_filename = $self->tmp_area_convert_file($output_ext, $filename_full_path);
    377    
     378       
    378379    if ("$conv_filename" eq "") {return -1;} # had an error, will be passed down pipeline
    379380    if (! -e "$conv_filename") {return -1;}
Note: See TracChangeset for help on using the changeset viewer.