Commit 0f7ae9b6 authored by Jean-Philippe Lang's avatar Jean-Philippe Lang Committed by Eric Davis

Fixed: Update of Subversion changesets broken by r3466 under Solaris (#5255).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3635 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 6efba7b0
......@@ -272,6 +272,12 @@ class Changeset < ActiveRecord::Base
end
str = txtar
end
str
# removes invalid UTF8 sequences
begin
Iconv.conv('UTF-8//IGNORE', 'UTF-8', str + ' ')[0..-3]
rescue Iconv::InvalidEncoding
# "UTF-8//IGNORE" is not supported on some OS
str
end
end
end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment