diff options
author | ayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-19 14:15:42 +0000 |
---|---|---|
committer | ayumin <ayumin@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-19 14:15:42 +0000 |
commit | 66795c47745698b30d42b35831f359aa3c07bf2c (patch) | |
tree | d3e358c27affd6a2f316e8c410e5af5d96ea41ac | |
parent | 11c7566aa38222c8120c076cf328c847d62b9a85 (diff) | |
download | ruby-66795c47745698b30d42b35831f359aa3c07bf2c.tar.gz |
* encoding.c: document fix, change default script encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40828 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | encoding.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Sun May 19 23:12:07 2013 Ayumu AIZAWA <ayumu.aizawa@gmail.com> + + * encoding.c: document fix, change default script encoding. + patched by @windwiny [Fixes GH-310] + Sun May 19 17:29:07 2013 Akinori MUSHA <knu@iDaemons.org> * lib/set.rb (Set#delete_if, Set#keep_if): Add comments. diff --git a/encoding.c b/encoding.c index a9a224430d..6fb14a5795 100644 --- a/encoding.c +++ b/encoding.c @@ -1700,7 +1700,7 @@ rb_enc_aliases(VALUE klass) * 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 |