Menu

Commit [r7927]  Maximize  Restore  History

Ruby 1.9: fix encoding error on wiki diffs (#4050)

WikiDiff#to_html returns a string with ASCII encoding if
the WikiJournal content has been Zlib compressed because
Zlib::Inflate.inflate returns strings with ASCII encoding.
Forcing the encoding to be UTF8 fixes this bug.

Contributed by Moritz Breit.

tmaruyama 2011-11-25

changed /trunk/app/models/wiki_content.rb
/trunk/app/models/wiki_content.rb Diff Switch to side-by-side view
Loading...
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.