]> source.dussan.org Git - redmine.git/commitdiff
scm: use upcase to compare encoding name "UTF-8" in log converting.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Apr 2011 23:21:41 +0000 (23:21 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Sat, 9 Apr 2011 23:21:41 +0000 (23:21 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5375 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/changeset.rb

index b018090247e3651fde94b5f6089e35bea1711e10..9b8ac5d70a89adb15fc40a3c4823c2e5e3b3007b 100644 (file)
@@ -263,7 +263,7 @@ class Changeset < ActiveRecord::Base
     end
     enc = encoding.blank? ? "UTF-8" : encoding
     if str.respond_to?(:force_encoding)
-      if enc != "UTF-8"
+      if enc.upcase != "UTF-8"
         str.force_encoding(enc)
         str = str.encode("UTF-8", :invalid => :replace,
               :undef => :replace, :replace => '?')