Changeset 22820


Ignore:
Timestamp:
2010-08-31T14:21:37+12:00 (14 years ago)
Author:
davidb
Message:

Need to call 'set_output_handle()' in additional places, to insure the more explict marking of the output stream to be ':utf8' is enforced

Location:
main/trunk/greenstone2/perllib
Files:
2 edited

Legend:

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

    r22352 r22820  
    213213    }
    214214
     215    $self->{'buildproc'}->set_output_handle ($handle);
    215216    $self->{'buildproc'}->reset();
     217
    216218    # compress the text
    217219    print $outhandle "\n    compressing the text\n"  if ($self->{'verbosity'} >= 1);
     
    457459    print $outhandle "\n    inverting the text\n"  if ($self->{'verbosity'} >= 1);
    458460    print STDERR "<Phase name='InvertingText'/>\n" if $self->{'gli'};
     461
     462    $self->{'buildproc'}->set_output_handle ($handle);
    459463    $self->{'buildproc'}->reset();
     464
    460465    &plugin::read ($self->{'pluginfo'}, $self->{'source_dir'},
    461466           "", {}, {}, $self->{'buildproc'}, $self->{'maxdocs'},0, $self->{'gli'});
  • main/trunk/greenstone2/perllib/mgppbuilder.pm

    r22352 r22820  
    261261    }
    262262
     263    $self->{'buildproc'}->set_output_handle ($handle);
    263264    $self->{'buildproc'}->reset();
     265
    264266    # compress the text
    265267    print $outhandle "\n    compressing the text (mgpp_passes -T2)\n"  if ($self->{'verbosity'} >= 1);
     
    485487   
    486488    $self->{'buildproc'}->reset();
     489
    487490    &plugin::read ($self->{'pluginfo'}, $self->{'source_dir'},
    488491           "", {}, {}, $self->{'buildproc'}, $self->{'maxdocs'}, 0, $self->{'gli'});
     
    519522    print $outhandle "\n    inverting the text (mgpp_passes -I2)\n"  if ($self->{'verbosity'} >= 1);
    520523    print STDERR "<Phase name='InvertingText'/>\n" if $self->{'gli'};
     524
     525    $self->{'buildproc'}->set_output_handle ($handle);
    521526    $self->{'buildproc'}->reset();
     527
    522528    &plugin::read ($self->{'pluginfo'}, $self->{'source_dir'},
    523529           "", {}, {}, $self->{'buildproc'}, $self->{'maxdocs'}, 0, $self->{'gli'});
Note: See TracChangeset for help on using the changeset viewer.