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/util.pm

    r31971 r32096  
    12801280        # check llssite.cfg for line with url property
    12811281        # for server.exe also need to use portnumber and enterlib properties           
    1282        
     1282        # The following file reading section is a candidate to use FileUtils::readUTF8File()
     1283        # in place of calling sysread() directly. But only if we can reason we'd be working with UTF8
    12831284        # Read in the entire contents of the file in one hit
    12841285        if (!open (FIN, $llssite_cfg)) {
Note: See TracChangeset for help on using the changeset viewer.