diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index c01c01da8e..a036d298f8 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -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)+)/, '')