Merge pull request #18361 from zimbatm/ruby-utf8

buildRubyGem: fixes gemspec UTF-8 loading issue
This commit is contained in:
zimbatm 2016-09-20 18:04:50 +01:00 committed by GitHub
commit 6f1383686a

View File

@ -6,6 +6,11 @@ require 'fileutils'
require 'pathname'
require 'tmpdir'
if defined?(Encoding.default_internal)
Encoding.default_internal = Encoding::UTF_8
Encoding.default_external = Encoding::UTF_8
end
# Options:
#
# name - the gem name