From: Toshi MARUYAMA Date: Sat, 12 Feb 2011 09:51:21 +0000 (+0000) Subject: Merged r4815 from trunk. X-Git-Tag: 1.1.2~20 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c61c9e64712b30af056837860cce919d79ae479a;p=redmine.git Merged r4815 from trunk. scm: cvs: fix most binary files become corrupted on Windows. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.1-stable@4818 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/scm/adapters/cvs_adapter.rb b/lib/redmine/scm/adapters/cvs_adapter.rb index 47fac7a3d..710706f76 100644 --- a/lib/redmine/scm/adapters/cvs_adapter.rb +++ b/lib/redmine/scm/adapters/cvs_adapter.rb @@ -249,6 +249,7 @@ module Redmine cmd << " -p #{shell_quote path_with_project}" cat = nil shellout(cmd) do |io| + io.binmode cat = io.read end return nil if $? && $?.exitstatus != 0