Binmode for windows.

git-svn-id: svn://svn.code.sf.net/p/fhem/code/trunk@1872 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
rudolfkoenig
2012-09-19 10:44:26 +00:00
parent 079aaa2270
commit 8dc6a79aee

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";