scm: fix annotate error with non ASCII author on Ruby 1.9 and Ruby 2.0 (#14931)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@12156 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2013-09-18 14:22:44 +00:00
parent 120689e7cb
commit 5aa8358f97
3 changed files with 59 additions and 1 deletions
+3 -1
View File
@@ -26,7 +26,9 @@
</td>
<td class="author">
<% if revision && revision != previous_revision %>
<%= revision.author.to_s.split('<').first %>
<% author = Redmine::CodesetUtil.to_utf8(revision.author.to_s,
@repository.repo_log_encoding) %>
<%= author.split('<').first %>
<% end %>
</td>
<td class="line-code"><pre><%= line.html_safe %></pre></td>