fix encode bugs on diff not utf-8 encode's code

This commit is contained in:
Saito 2011-11-30 15:05:37 +08:00
parent f114a4f349
commit 12c01d7401
2 changed files with 3 additions and 3 deletions

View file

@ -2,7 +2,7 @@
- line_new = 0
- lines_arr = diff.diff.lines.to_a
- lines_arr.each do |line|
- encode(line)
- line = encode(line)
- next if line.match(/^--- \/dev\/null/)
- next if line.match(/^--- a/)
- next if line.match(/^\+\+\+ b/)