set binary mode for some file handling and it might work better on some
cygwin installations (using DOS-style files somehow?)
This commit is contained in:
		@@ -95,6 +95,7 @@ sub loadtest {
 | 
			
		||||
    undef @xml;
 | 
			
		||||
    open(XML, "<$file") ||
 | 
			
		||||
        return 1; # failure!
 | 
			
		||||
    binmode XML; # for crapage systems, use binary
 | 
			
		||||
    while(<XML>) {
 | 
			
		||||
        push @xml, $_;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
@@ -637,6 +637,7 @@ sub singletest {
 | 
			
		||||
        subVariables \$fileContent;
 | 
			
		||||
#        print "DEBUG: writing file " . $filename . "\n";
 | 
			
		||||
        open OUTFILE, ">$filename";
 | 
			
		||||
        binmode OUTFILE; # for crapage systems, use binary       
 | 
			
		||||
        print OUTFILE $fileContent;
 | 
			
		||||
        close OUTFILE;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user