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/TextPlugin.pm

    r16301 r16580  
    170170    # convert to utf-8 otherwise we have problems with the doc.xml file
    171171    # later on
    172     &unicode::ensure_utf8(\$tailname); # TODO: does this change the filename or not?
    173              # need to test this out on a windows computer using a Greek filename
     172    $tailname = $self->SUPER::filepath_to_utf8($tailname) unless &unicode::check_is_utf8($tailname);
     173
    174174    $suffix = lc($suffix);
    175175    my $tmp_filename = &util::filename_cat($tmp_dirname, "$tailname$suffix");
Note: See TracChangeset for help on using the changeset viewer.