From c61c9e64712b30af056837860cce919d79ae479a Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sat, 12 Feb 2011 09:51:21 +0000 Subject: [PATCH] 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 --- lib/redmine/scm/adapters/cvs_adapter.rb | 1 + 1 file changed, 1 insertion(+) 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 -- 2.39.5