From ab35876444f57e1a04f2053fa3ca69400f3f4d72 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 1 Feb 2020 22:54:58 +0900 Subject: [PATCH] Explicitly set the encoding of ChangeLog file to UTF-8 [ci skip] --- tool/lib/vcs.rb | 1 + 1 file changed, 1 insertion(+) 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)+)/, '')