From 7e5bc046d68db93a3083611178efee03602fd62b Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Thu, 14 Apr 2011 15:01:10 +0000 Subject: [PATCH] scm: cvs: add comment of author regexp fails in some non UTF-8 chars on Ruby 1.8. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5454 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 ee8e61d89..059f5cecf 100644 --- a/lib/redmine/scm/adapters/cvs_adapter.rb +++ b/lib/redmine/scm/adapters/cvs_adapter.rb @@ -239,6 +239,7 @@ module Redmine revision = $1 elsif /^date:\s+(\d+.\d+.\d+\s+\d+:\d+:\d+)/ =~ line date = Time.parse($1) + # TODO: This regexp fails in some non UTF-8 chars on Ruby 1.8. author = /author: ([^;]+)/.match(line)[1] file_state = /state: ([^;]+)/.match(line)[1] # TODO: -- 2.39.5