1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Explicitly set the encoding of ChangeLog file to UTF-8 [ci skip]

This commit is contained in:
Nobuyoshi Nakada 2020-02-01 22:54:58 +09:00
parent 7f6bd6bb1c
commit ab35876444
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -636,6 +636,7 @@ class VCS
cmd << date
cmd.concat(arg)
File.open(path, 'w') do |w|
w.print "-*- coding: utf-8 -*-\n\n"
cmd_pipe(env, cmd, chdir: @srcdir) do |r|
while s = r.gets("\ncommit ")
if s.sub!(/\nNotes \(log-fix\):\n((?: +.*\n)+)/, '')