Skip to content
Snippets Groups Projects
Commit b125e8e2 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

set binary mode for some file handling and it might work better on some

cygwin installations (using DOS-style files somehow?)
parent b28b616e
No related branches found
No related tags found
No related merge requests found
......@@ -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,7 +637,8 @@ sub singletest {
subVariables \$fileContent;
# print "DEBUG: writing file " . $filename . "\n";
open OUTFILE, ">$filename";
print OUTFILE $fileContent;
binmode OUTFILE; # for crapage systems, use binary
print OUTFILE $fileContent;
close OUTFILE;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment