specify the encoding because UTF-8 characters may be contained in reference

If use Ruby19, it will not handle correctly.
This commit is contained in:
Watson
2012-11-02 13:48:37 +09:00
parent 840d35e910
commit cabd20f882

View File

@@ -173,6 +173,7 @@ class DocsetGenerator
@input_paths.map { |path| parse_html_data(File.read(path)) }.compact.each_with_index do |code, n|
File.open(File.join(@rb_files_dir, "t#{n}.rb"), 'w') do |io|
io.puts "# -*- coding: utf-8 -*-"
io.write(code)
end
end