summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/functional/repositories_git_controller_test.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb
index b0542d6af..fa013d900 100644
--- a/test/functional/repositories_git_controller_test.rb
+++ b/test/functional/repositories_git_controller_test.rb
@@ -287,6 +287,24 @@ class RepositoriesGitControllerTest < ActionController::TestCase
:content => /cannot be annotated/
end
+ def test_annotate_latin_1
+ if @ruby19_non_utf8_pass
+ puts_ruby19_non_utf8_pass()
+ else
+ with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
+ ['57ca437c', '57ca437c0acbbcb749821fdf3726a1367056d364'].each do |r1|
+ get :annotate, :id => PRJ_ID,
+ :path => ['latin-1-dir', "test-#{@char_1}.txt"], :rev => r1
+ assert_tag :tag => 'th',
+ :content => '1',
+ :attributes => { :class => 'line-num' },
+ :sibling => { :tag => 'td',
+ :content => /test-#{@char_1}.txt/ }
+ end
+ end
+ end
+ end
+
def test_revision
@repository.fetch_changesets
@repository.reload