OSDN Git Service

Strip non utf8 content when displaying diff (ruby1.9 compatibility).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 1 Jan 2011 13:40:36 +0000 (13:40 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 1 Jan 2011 13:40:36 +0000 (13:40 +0000)
commit488285e12321fc590dee0235470cfb12d77a3432
treed8f44a7dad87372748a64e12cedf66148c0e85f9
parent1c7079db3fb099c6913353c9d56c27628b712026
Strip non utf8 content when displaying diff (ruby1.9 compatibility).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4604 e93f8b46-1217-0410-a6f0-8f06a7374b81
app/helpers/attachments_helper.rb
app/views/common/_diff.rhtml
test/fixtures/attachments.yml
test/fixtures/files/060719210727_changeset_iso8859-1.diff [moved from test/fixtures/files/060719210727_changeset.diff with 73% similarity]
test/fixtures/files/060719210727_changeset_utf8.diff [new file with mode: 0644]
test/functional/attachments_controller_test.rb