1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-02-20 02:22:02 +00:00

FrozenError when exporting gantt to PDF in some languages (#32832).

Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@19435 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA 2020-01-18 09:58:39 +00:00
parent a7ae2ec0aa
commit 65d22c7510
2 changed files with 3 additions and 2 deletions

View File

@ -52,6 +52,7 @@ module Redmine
end
def SetFont(family, style='', size=0, fontfile='')
style = +style
# FreeSerif Bold Thai font has problem.
style.delete!('B') if family.to_s.casecmp('freeserif') == 0
# DejaVuSans Italic Arabic and Persian font has problem.

View File

@ -1074,7 +1074,7 @@ class IssuesControllerTest < Redmine::ControllerTest
end
def test_index_pdf
["en", "zh", "zh-TW", "ja", "ko"].each do |lang|
["en", "zh", "zh-TW", "ja", "ko", "ar"].each do |lang|
with_settings :default_language => lang do
get :index
assert_response :success
@ -2674,7 +2674,7 @@ class IssuesControllerTest < Redmine::ControllerTest
def test_export_to_pdf_with_utf8_u_fffd
issue = Issue.generate!(:subject => "<EFBFBD>")
["en", "zh", "zh-TW", "ja", "ko"].each do |lang|
["en", "zh", "zh-TW", "ja", "ko", "ar"].each do |lang|
with_settings :default_language => lang do
get(
:show,