Changeset 28604

Show
Ignore:
Timestamp:
05.11.2013 18:40:59 (6 years ago)
Author:
ak19
Message:

Found some issues when wanting to add in the CDS-ISIS tutorial collection into the model-collections now that 64 bit linux can handled ISIS collections. Windows carriage return linefeed needs to be processed the same way as linux linefeed, else on Windows the ISIS file will not get parsed the same way and also result in extra newline characters, which shows up when doing diffcol.

Files:
1 modified

Legend:

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

    r28575 r28604  
    15501550        $path =~ s/^$re_path/$placeholder/; #case sensitive or not? 
    15511551        #$path =~ s/^[\\\/]//; # remove gs_path's trailing separator left behind at the start of the path 
     1552        # lowercase file extension, This is needed when shortfilenames are used, as case affects alphetical ordering, which affects diffcol      
     1553        $path =~ s/\.([A-Z]+)$/".".lc($1)/e; 
    15521554        last; # done 
    15531555    }