Changeset 29763 for main/trunk/greenstone2/perllib
- Timestamp:
- 2015-02-26T12:30:42+13:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/DirectoryPlugin.pm
r29760 r29763 44 44 use Encode::Locale; 45 45 use Encode; 46 use Unicode::Normalize; 46 47 47 48 BEGIN { … … 545 546 #my $unicode_subfile = &Encode::decode("utf8", $raw_subfile); 546 547 my $unicode_subfile = &Encode::decode(locale => $raw_subfile); 547 548 549 # Normalise the filename to canonical composition - on mac, filenames use decopmposed form for accented chars 550 $unicode_subfile = NFC($unicode_subfile); 551 548 552 my $raw_file_subfile = &FileUtils::filenameConcatenate($file, $raw_subfile); 549 553 my $raw_full_filename … … 598 602 599 603 ### $subfile by this point is url-encoded => all ASCII chars => no need to encode as UTF8 600 ###print STDERR "subfile = $subfile, raw_subfile = $raw_subfile\n";601 ###print STDERR &unicode::debug_unicode_string("subfile = $subfile, raw_subfile = $raw_subfile\n");604 print STDERR "****** subfile = $subfile, raw_subfile = $raw_subfile\n"; 605 print STDERR &unicode::debug_unicode_string("subfile = $subfile, raw_subfile = $raw_subfile\n"); 602 606 # instead of using the subfile, we need unicode aware string 603 607 ###my $lookup_name = decode("utf8", $raw_subfile); … … 607 611 foreach my $filespec (@extrametakeys) { 608 612 ## use the url-encoded filename to do the filename comparison 609 print STDERR " comparing against filespec $filespec (";613 print STDERR "### comparing against filespec $filespec ("; 610 614 print STDERR &unicode::debug_unicode_string("$filespec"); 611 615 print STDERR ")\n";
Note:
See TracChangeset
for help on using the changeset viewer.