https://www.chiliproject.org/2011-05-30T19:50:01+02:00ChiliProjectChiliProject - Bug #437: Encoding error on Ruby 1.9 in pdf exportshttps://www.chiliproject.org/issues/437?journal_id=101382011-05-30T19:50:01+02:00Holger Justchiliproject@meine-er.de
<ul><li><strong>Start date</strong> set to <i>2011-05-30</i></li><li><strong>Estimated time</strong> deleted ()</li><li><strong>Priority</strong> changed from <i>Normal</i> to <i>Normal</i></li><li><strong>Project</strong> set to <i>ChiliProject</i></li><li><strong>Target version</strong> set to <i>2.0.0</i></li><li><strong>Assignee</strong> set to <i>Eric Davis</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>0</i></li><li><strong>Subject</strong> set to <i>Encoding error on Ruby 1.9 in pdf exports</i></li><li><strong>Category</strong> deleted ()</li><li><strong>Tracker</strong> set to <i>Bug</i></li><li><strong>Due date</strong> deleted ()</li><li><strong>Subproject of</strong> deleted ()</li><li><strong>Description</strong> set to <i>http://ci.chiliproject.org/job/chiliproject_unstable/DATABASE=mysql,RUBY=ruby...</i> <a href="/journals/10138/diff/description" class="lightbox-ajax">More</a></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul> ChiliProject - Bug #437: Encoding error on Ruby 1.9 in pdf exportshttps://www.chiliproject.org/issues/437?journal_id=19772011-05-30T21:01:43+02:00Eric Davis
<ul></ul><p>The file might need to have it's encoding declared. I can't test it though because my 1.9.2 isn't working with bundler (linecache error).</p> ChiliProject - Bug #437: Encoding error on Ruby 1.9 in pdf exportshttps://www.chiliproject.org/issues/437?journal_id=19782011-05-30T21:21:14+02:00Eric Davis
<ul><li><strong>Assignee</strong> set to <i>Eric Davis</i></li><li><strong>Status</strong> changed from <i>Open</i> to <i>Needs more information</i></li></ul><p>I might have fixed this just using 1.9.2's syntax checker. Will wait for the CI to close. <a href="https://www.chiliproject.org/projects/chiliproject/repository/revisions/821d9f5ca4188ae4aab021b6eadb6ac6ea6ab2f5" class="changeset" title="[#437] Move the encoding to the top of pdf.rb for Ruby 1.9">821d9f5</a></p> ChiliProject - Bug #437: Encoding error on Ruby 1.9 in pdf exportshttps://www.chiliproject.org/issues/437?journal_id=20002011-06-02T05:07:28+02:00Eric Davis
<ul><li><strong>Status</strong> changed from <i>Needs more information</i> to <i>Closed</i></li></ul><p>Confirmed fixed in CI</p> ChiliProject - Bug #437: Encoding error on Ruby 1.9 in pdf exportshttps://www.chiliproject.org/issues/437?journal_id=20032011-06-02T05:54:26+02:00Toshi MARUYAMA
<ul><li><strong>Status</strong> changed from <i>Closed</i> to <i>Open</i></li></ul><p>There is no test for this issue.<br />We fixed on redmine after revision 5300 which chili has not yet imported.</p> ChiliProject - Bug #437: Encoding error on Ruby 1.9 in pdf exportshttps://www.chiliproject.org/issues/437?journal_id=20042011-06-02T05:58:29+02:00Toshi MARUYAMA
<ul></ul><p>You have not imported our fixing.<br /><a class="external" href="http://www.redmine.org/projects/redmine/repository/revisions/5306">http://www.redmine.org/projects/redmine/repository/revisions/5306</a></p> ChiliProject - Bug #437: Encoding error on Ruby 1.9 in pdf exportshttps://www.chiliproject.org/issues/437?journal_id=20142011-06-03T00:04:42+02:00Toshi MARUYAMA
<ul></ul><pre>
$ irb
ruby-1.9.2-p136 :001 > txt = "Felix Schäfer"
=> "Felix Schäfer"
ruby-1.9.2-p136 :002 > txt.force_encoding("ASCII-8BIT")
=> "Felix Sch\xC3\xA4fer"
ruby-1.9.2-p136 :003 > txt = txt.gsub(/[“�]/, '"') if txt
Encoding::CompatibilityError: incompatible encoding regexp match (UTF-8 regexp with ASCII-8BIT string)
from (irb):3:in `gsub'
from (irb):3
from /home/xxxxx/.rvm/rubies/ruby-1.9.2-p136/bin/irb:16:in `<main>'
ruby-1.9.2-p136 :004 > txt.force_encoding("UTF-8")
=> "Felix Schäfer"
ruby-1.9.2-p136 :005 > txt = txt.gsub(/[“�]/, '"') if txt
=> "Felix Schäfer"
</pre> ChiliProject - Bug #437: Encoding error on Ruby 1.9 in pdf exportshttps://www.chiliproject.org/issues/437?journal_id=20162011-06-03T01:00:03+02:00Toshi MARUYAMA
<ul></ul><p>Toshi MARUYAMA wrote:</p>
<blockquote>
<p>There is no test for this issue.<br />We fixed on redmine after revision 5300 which chili has not yet imported.</p>
</blockquote>
<p><a class="external" href="http://www.redmine.org/projects/redmine/repository/changes/trunk/test/unit/lib/redmine/export/pdf_test.rb?rev=5998">http://www.redmine.org/projects/redmine/repository/changes/trunk/test/unit/lib/redmine/export/pdf_test.rb?rev=5998</a></p> ChiliProject - Bug #437: Encoding error on Ruby 1.9 in pdf exportshttps://www.chiliproject.org/issues/437?journal_id=20192011-06-03T15:29:31+02:00Eric Davis
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Toshi MARUYAMA:</p>
<p>This issue is not about a test failure, it was for a test error that was fixed in my commits.</p>