Changeset 25661

Show
Ignore:
Timestamp:
23.05.2012 17:39:27 (7 years ago)
Author:
ak19
Message:

Dr Bainbridge fixed the mode in which the buildconfig and collectionconfig output files were written so that it's now in utf-8 mode.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/bin/script/convert_coll_from_gs2.pl

    r25646 r25661  
    121121 
    122122    my $buildoutput = new IO::File(">$buildoutfile"); 
     123    binmode($colloutput,":utf8"); 
    123124    my $buildwriter = new XML::Writer(OUTPUT => $buildoutput, NEWLINES => 1); 
    124125     
     
    127128     
    128129    my $colloutput = new IO::File(">$colloutfile"); 
     130    binmode($colloutput,":utf8"); 
    129131    my $collwriter = new XML::Writer(OUTPUT => $colloutput, NEWLINES => 1); 
    130132     
     
    200202    } 
    201203    } else { 
    202     print STDERR "$maptype not defined"; 
     204    print STDERR "$maptype not defined\n"; 
    203205    } 
    204206    # we use the shortname for default index