scm: use upcase to compare encoding name "UTF-8" in log converting.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5375 e93f8b46-1217-0410-a6f0-8f06a7374b81
pull/351/head
Toshi MARUYAMA 14 years ago committed by Eric Davis
parent e19c56d61a
commit 6efba7b05d
  1. 2
      app/models/changeset.rb

@ -247,7 +247,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 => '?')

Loading…
Cancel
Save