Changeset 32096 for main/trunk/greenstone2/perllib/plugins
- Timestamp:
- 2017-12-12T16:47:34+13:00 (6 years ago)
- Location:
- main/trunk/greenstone2/perllib/plugins
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/plugins/HTMLPlugin.pm
r31955 r32096 962 962 963 963 my $css_filename_dirname = &File::Basename::dirname($css_filename); 964 964 965 # The following file reading section is a candidate to use FileUtils::readUTF8File() 966 # in place of calling sysread() directly. But only if we can reason we'd be working with UTF8 965 967 open (CSSFILE, $css_filename) || return; 966 968 sysread (CSSFILE, my $file_string, -s CSSFILE); -
main/trunk/greenstone2/perllib/plugins/ReadTextFile.pm
r31492 r32096 216 216 217 217 if ($encoding eq "ascii") { 218 # The following file reading section is a candidate to use FileUtils::readUTF8File() 219 # in place of calling sysread() directly. But only if we can reason we'd be working with UTF8. 220 # ascii is UTF8, but it may become inefficient to treat ascii as utf8 221 218 222 # Replace file 'slurp' with faster implementation 219 223 sysread(FILE, $$textref, -s FILE);
Note:
See TracChangeset
for help on using the changeset viewer.