@@ -24,8 +24,12 class PdfTest < ActiveSupport::TestCase | |||
|
24 | 24 | def test_fix_text_encoding_nil |
|
25 | 25 | set_language_if_valid 'ja' |
|
26 | 26 | assert_equal 'CP932', l(:general_pdf_encoding) |
|
27 | if RUBY_VERSION < '1.9' | |
|
28 | ic = Iconv.new(l(:general_pdf_encoding), 'UTF-8') | |
|
27 | if RUBY_VERSION < '1.9' | |
|
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 | 33 | end |
|
30 | 34 | assert_equal '', Redmine::Export::PDF::RDMPdfEncoding::rdm_pdf_iconv(ic, nil) |
|
31 | 35 | end |
General Comments 0
You need to be logged in to leave comments.
Login now