Binmode for windows.
git-svn-id: https://svn.fhem.de/fhem/trunk@1872 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -244,6 +244,7 @@ CommandUpdatefhem($$)
|
|||||||
return "File size for $f ($l1) does not correspond to ".
|
return "File size for $f ($l1) does not correspond to ".
|
||||||
"filetimes.txt entry ($l2)" if($l1 ne $l2);
|
"filetimes.txt entry ($l2)" if($l1 ne $l2);
|
||||||
open(FH,">$localfile") || return "Can't write $localfile";
|
open(FH,">$localfile") || return "Can't write $localfile";
|
||||||
|
binmode(FH);
|
||||||
print FH $content;
|
print FH $content;
|
||||||
close(FH);
|
close(FH);
|
||||||
$ret .= "updated $f\n";
|
$ret .= "updated $f\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user