ruby-changes:28776
From: ayumin <ko1@a...>
Date: Sun, 19 May 2013 23:15:54 +0900 (JST)
Subject: [ruby-changes:28776] ayumin:r40828 (trunk): * encoding.c: document fix, change default script encoding.
ayumin 2013-05-19 23:15:42 +0900 (Sun, 19 May 2013) New Revision: 40828 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40828 Log: * encoding.c: document fix, change default script encoding. Modified files: trunk/ChangeLog trunk/encoding.c Index: encoding.c =================================================================== --- encoding.c (revision 40827) +++ encoding.c (revision 40828) @@ -1700,7 +1700,7 @@ rb_enc_aliases(VALUE klass) https://github.com/ruby/ruby/blob/trunk/encoding.c#L1700 * All Ruby script code has an associated Encoding which any String literal * created in the source code will be associated to. * - * The default script encoding is <code>Encoding::US-ASCII</code>, but it can + * The default script encoding is <code>Encoding::UTF-8</code> after v2.0, but it can * be changed by a magic comment on the first line of the source code file (or * second line, if there is a shebang line on the first). The comment must * contain the word <code>coding</code> or <code>encoding</code>, followed Index: ChangeLog =================================================================== --- ChangeLog (revision 40827) +++ ChangeLog (revision 40828) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sun May 19 23:12:07 2013 Ayumu AIZAWA <ayumu.aizawa@g...> + + * encoding.c: document fix, change default script encoding. + patched by @windwiny [Fixes GH-310] + Sun May 19 17:29:07 2013 Akinori MUSHA <knu@i...> * lib/set.rb (Set#delete_if, Set#keep_if): Add comments. -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/