Binmode for windows.

git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1872 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-09-19 10:44:26 +00:00
parent e4a9be77d3
commit b10a7b5009

View File

@@ -244,6 +244,7 @@ CommandUpdatefhem($$)
return "File size for $f ($l1) does not correspond to ".
"filetimes.txt entry ($l2)" if($l1 ne $l2);
open(FH,">$localfile") || return "Can't write $localfile";
binmode(FH);
print FH $content;
close(FH);
$ret .= "updated $f\n";