summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-09-18 14:22:44 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2013-09-18 14:22:44 +0000
commit5aa8358f97d29dcce71bef48089ac7f86550fc62 (patch)
tree388227f0d978b492ebe22a03d1202de26d419526 /app
parent120689e7cb48eb87d49827eb5ce7f9c12d689aaf (diff)
downloadredmine-5aa8358f97d29dcce71bef48089ac7f86550fc62.tar.gz
redmine-5aa8358f97d29dcce71bef48089ac7f86550fc62.zip
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
Diffstat (limited to 'app')
-rw-r--r--app/views/repositories/annotate.html.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/repositories/annotate.html.erb b/app/views/repositories/annotate.html.erb
index 210a0c0e5..fcb6d3d84 100644
--- a/app/views/repositories/annotate.html.erb
+++ b/app/views/repositories/annotate.html.erb
@@ -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>