From 139c4c2f181719f61e7b27ba23df6c065d795f2a Mon Sep 17 00:00:00 2001
From: Saito <saitowu@gmail.com>
Date: Fri, 18 Nov 2011 19:48:23 +0800
Subject: [PATCH] fix diff bug

---
 app/views/commits/_text_file.html.haml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/app/views/commits/_text_file.html.haml b/app/views/commits/_text_file.html.haml
index ed9adffd1e..cb54299a77 100644
--- a/app/views/commits/_text_file.html.haml
+++ b/app/views/commits/_text_file.html.haml
@@ -2,6 +2,7 @@
 - line_new = 0
 - lines_arr = diff.diff.lines.to_a
 - lines_arr.each do |line|
+  - line = line.force_encoding(Encoding::UTF_8)
   - next if line.match(/^--- \/dev\/null/)
   - next if line.match(/^--- a/)
   - next if line.match(/^\+\+\+ b/)
-- 
2.30.9