Changeset 13545
- Timestamp:
- 2007-01-08T16:48:43+13:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/RecPlug.pm
r13417 r13545 102 102 use strict; 103 103 no strict 'refs'; 104 use Encode; 104 105 105 106 BEGIN { … … 401 402 &metadatautil::combine_metadata_structures($out_metadata, $in_metadata); 402 403 404 ## encode the filename as perl5 doesn't handle unicode filenames 405 my $tmpfile = Encode::encode_utf8($subfile); 406 403 407 # Next add metadata read in XML files (if it is supplied) 404 408 if ($additionalmetadata == 1) { … … 406 410 my ($filespec, $mdref); 407 411 foreach $filespec (@extrametakeys) { 408 if ($subfile =~ /^$filespec$/) { 412 ## use the utf8 encoded filename to do the filename comparison 413 if ($tmpfile =~ /^$filespec$/) { 409 414 print $outhandle "File \"$subfile\" matches filespec \"$filespec\"\n" 410 415 if ($verbosity > 2);
Note:
See TracChangeset
for help on using the changeset viewer.