Ignore:
Timestamp:
2010-12-06T13:15:10+13:00 (13 years ago)
Author:
davidb
Message:

Further changes to deal with documents that use different filename encodings on the file-system. Now sets UTF8URL metadata to perform the cross-document look up. Files stored in doc.pm as associated files are now always raw filenames (rather than potentially UTF8 encoded). Storing of filenames seen by HTMLPlug when scanning for files to block on is now done in Unicode aware strings rather than utf8 but unware strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/doc.pm

    r23362 r23387  
    10891089    $self->delete_assoc_file ($assoc_filename);
    10901090   
     1091    if (!&util::fd_exists($real_filename)) {
     1092    print STDERR "****** doc::associate_file(): Failed to find the file $real_filename\n";
     1093    exit -1;
     1094    }
     1095#    print STDERR "**** is the following a UTF8 rep of *real* filename?\n   $real_filename\n";
     1096#    print STDERR "****##### so, ensure it is before storing?!?!?\n";
     1097##    my $utf8_filename = Encode::encode("utf8",$filename);
     1098
    10911099    push (@{$self->{'associated_files'}},
    10921100      [$real_filename, $assoc_filename, $mime_type, $section]);
Note: See TracChangeset for help on using the changeset viewer.