Commit 75df0c34 authored by Taras Kalapun's avatar Taras Kalapun

Update lib/cocoapods/generator/acknowledgements/markdown.rb

Forcing UTF-8 encoding on licenses generation in Ruby 1.9 only. Fixes #530
parent 420b75cf
...@@ -28,7 +28,8 @@ module Pod ...@@ -28,7 +28,8 @@ module Pod
licenses_string = "#{title_from_string(header_title, 1)}\n#{header_text}\n" licenses_string = "#{title_from_string(header_title, 1)}\n#{header_text}\n"
@pods.each do |pod| @pods.each do |pod|
if (license = string_for_pod(pod)) if (license = string_for_pod(pod))
licenses_string += license.force_encoding("utf-8") license = license.force_encoding("UTF-8") if license.respond_to?(:force_encoding)
licenses_string += license
end end
end end
licenses_string += "#{title_from_string(footnote_title, 2)}#{footnote_text}\n" licenses_string += "#{title_from_string(footnote_title, 2)}#{footnote_text}\n"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment