- Timestamp:
- 2015-02-23T14:09:06+13:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/DirectoryPlugin.pm
r29745 r29760 42 42 no strict 'subs'; 43 43 44 use Encode::Locale; 44 45 use Encode; 45 46 … … 333 334 # Recursively read each $raw_subfile 334 335 print $outhandle "DirectoryPlugin block recurring: ". Encode::decode("utf8", $raw_file_subfile) ."\n" if ($verbosity > 2); 336 print $outhandle "DirectoryPlugin block recurring: ". Encode::decode(locale =>$raw_file_subfile) ."\n" if ($verbosity > 2); 335 337 336 338 #$count += &plugin::file_block_read ($pluginfo, $this_file_base_dir, … … 541 543 my $this_file_base_dir = $base_dir; 542 544 my $raw_subfile = &unicode::url_encoded_to_raw_filename($subfile); 543 my $unicode_subfile = &Encode::decode("utf8", $raw_subfile); 544 545 #my $unicode_subfile = &Encode::decode("utf8", $raw_subfile); 546 my $unicode_subfile = &Encode::decode(locale => $raw_subfile); 547 545 548 my $raw_file_subfile = &FileUtils::filenameConcatenate($file, $raw_subfile); 546 549 my $raw_full_filename … … 604 607 foreach my $filespec (@extrametakeys) { 605 608 ## use the url-encoded filename to do the filename comparison 606 print STDERR "comparing against filespec $filespec\n"; 607 print STDERR &unicode::debug_unicode_string("comparing against filespec $filespec\n"); 609 print STDERR "comparing against filespec $filespec ("; 610 print STDERR &unicode::debug_unicode_string("$filespec"); 611 print STDERR ")\n"; 608 612 if ($unicode_subfile =~ /^$filespec$/) { 609 613 ###if ($lookup_name =~ /^$filespec$/) {
Note:
See TracChangeset
for help on using the changeset viewer.