From b10a7b500902712e9a69535fdfa8155fe1907ec5 Mon Sep 17 00:00:00 2001 From: rudolfkoenig Date: Wed, 19 Sep 2012 10:44:26 +0000 Subject: [PATCH] Binmode for windows. git-svn-id: https://fhem.svn.sourceforge.net/svnroot/fhem/trunk/fhem@1872 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- FHEM/99_updatefhem.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/FHEM/99_updatefhem.pm b/FHEM/99_updatefhem.pm index 196497baf..731e2be3a 100644 --- a/FHEM/99_updatefhem.pm +++ b/FHEM/99_updatefhem.pm @@ -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";