##// END OF EJS Templates
Merged r6013 from trunk....
Toshi MARUYAMA -
r5897:d15de8ee121d
parent child
Show More
@@ -24,8 +24,12 class PdfTest < ActiveSupport::TestCase
24 def test_fix_text_encoding_nil
24 def test_fix_text_encoding_nil
25 set_language_if_valid 'ja'
25 set_language_if_valid 'ja'
26 assert_equal 'CP932', l(:general_pdf_encoding)
26 assert_equal 'CP932', l(:general_pdf_encoding)
27 if RUBY_VERSION < '1.9'
27 if RUBY_VERSION < '1.9'
28 ic = Iconv.new(l(:general_pdf_encoding), 'UTF-8')
28 if RUBY_PLATFORM == 'java'
29 ic = Iconv.new("SJIS", 'UTF-8')
30 else
31 ic = Iconv.new(l(:general_pdf_encoding), 'UTF-8')
32 end
29 end
33 end
30 assert_equal '', Redmine::Export::PDF::RDMPdfEncoding::rdm_pdf_iconv(ic, nil)
34 assert_equal '', Redmine::Export::PDF::RDMPdfEncoding::rdm_pdf_iconv(ic, nil)
31 end
35 end
General Comments 0
You need to be logged in to leave comments. Login now