Ignore:
Timestamp:
2017-12-12T16:47:34+13:00 (6 years ago)
Author:
ak19
Message:

Marking all the uses of sysread() with a comment saying they're a candidate to use FileUtils::readUTF8File() in future, if thinking about each case beforehand has confirmed that the contents will indeed be UTF8.

File:
1 edited

Legend:

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

    r31952 r32096  
    201201        # check the page content is as expected
    202202        #my $resultstr = $response_content;
    203        
     203
     204            # The following file reading section is a candidate to use FileUtils::readUTF8File()
     205    # in place of calling sysread() directly. But only if we can reason we'd be working with UTF8
    204206        open(FIN,"<$tmpfilename") or die "servercontrol.pm: Unable to open $tmpfilename to read ping response page...ERROR: $!\n";
    205207        my $resultstr;
Note: See TracChangeset for help on using the changeset viewer.