Changeset 23348

Show
Ignore:
Timestamp:
26.11.2010 11:32:42 (9 years ago)
Author:
davidb
Message:

Added extra parameter to call to deduce_filename_encoding()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/ReadTextFile.pm

    r23335 r23348  
    141141    $doc_obj->add_utf8_metadata($top_section, "FileSize", (-s $filename_full_path)); 
    142142 
    143     my $filename_encoding = $self->deduce_filename_encoding($file,$metadata); 
     143    my $plugin_filename_encoding = $self->{'filename_encoding'}; 
     144    my $filename_encoding = $self->deduce_filename_encoding($file,$metadata,$plugin_filename_encoding); 
    144145    $self->set_Source_metadata($doc_obj, $filename_no_path, $filename_encoding); 
    145146