lib/autobuild/subcommand.rb in autobuild-1.7.1 vs lib/autobuild/subcommand.rb in autobuild-1.7.2

- old
+ new

@@ -179,9 +179,12 @@ open_flag = if Autobuild.keep_oldlogs then 'a' elsif Autobuild.registered_logfile?(logname) then 'a' else 'w' end + if defined? Encoding + open_flag << ":BINARY" + end Autobuild.register_logfile(logname) status = File.open(logname, open_flag) do |logfile| if Autobuild.keep_oldlogs