diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-01 22:54:58 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2020-02-01 23:10:18 +0900 |
commit | ab35876444f57e1a04f2053fa3ca69400f3f4d72 (patch) | |
tree | e6e9625013392a1b0794b0f9664d6e3ade4b338a /tool | |
parent | 7f6bd6bb1c2220d2d7c17b77abf52fb4af548001 (diff) | |
download | ruby-ab35876444f57e1a04f2053fa3ca69400f3f4d72.tar.gz |
Explicitly set the encoding of ChangeLog file to UTF-8 [ci skip]
Diffstat (limited to 'tool')
-rw-r--r-- | tool/lib/vcs.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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)+)/, '') |