[前][次][番号順一覧][スレッド一覧]

ruby-changes:59899

From: Nobuyoshi <ko1@a...>
Date: Sat, 1 Feb 2020 23:10:44 +0900 (JST)
Subject: [ruby-changes:59899] ab35876444 (master): Explicitly set the encoding of ChangeLog file to UTF-8 [ci skip]

https://git.ruby-lang.org/ruby.git/commit/?id=ab35876444

From ab35876444f57e1a04f2053fa3ca69400f3f4d72 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Sat, 1 Feb 2020 22:54:58 +0900
Subject: Explicitly set the encoding of ChangeLog file to UTF-8 [ci skip]


diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb
index c01c01d..a036d29 100644
--- a/tool/lib/vcs.rb
+++ b/tool/lib/vcs.rb
@@ -636,6 +636,7 @@ class VCS https://github.com/ruby/ruby/blob/trunk/tool/lib/vcs.rb#L636
       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)+)/, '')
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]