ruby-changes:4180
From: ko1@a...
Date: Sun, 2 Mar 2008 10:13:31 +0900 (JST)
Subject: [ruby-changes:4180] nobu - Ruby:r15670 (trunk): * ruby.c (load_file): parse shebang in us-ascii. a patch from
nobu 2008-03-02 10:13:15 +0900 (Sun, 02 Mar 2008)
New Revision: 15670
Modified files:
trunk/ChangeLog
trunk/ruby.c
Log:
* ruby.c (load_file): parse shebang in us-ascii. a patch from
sheepman <sheepman AT sheepman.sakura.ne.jp> in [ruby-dev:33955]
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ruby.c?r1=15670&r2=15669&diff_format=u
http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15670&r2=15669&diff_format=u
Index: ChangeLog
===================================================================
--- ChangeLog (revision 15669)
+++ ChangeLog (revision 15670)
@@ -1,3 +1,8 @@
+Sun Mar 2 10:13:12 2008 Nobuyoshi Nakada <nobu@r...>
+
+ * ruby.c (load_file): parse shebang in us-ascii. a patch from
+ sheepman <sheepman AT sheepman.sakura.ne.jp> in [ruby-dev:33955]
+
Sun Mar 2 00:08:10 2008 Nobuyoshi Nakada <nobu@r...>
* object.c (rb_cstr_to_dbl): check for successive underscores.
Index: ruby.c
===================================================================
--- ruby.c (revision 15669)
+++ ruby.c (revision 15670)
@@ -1155,6 +1155,9 @@
int no_src_enc = !opt->src.enc.name;
int no_ext_enc = !opt->ext.enc.name;
+ enc = rb_usascii_encoding();
+ rb_funcall(f, rb_intern("set_encoding"), 1, rb_enc_from_encoding(enc));
+
if (opt->xflag) {
forbid_setid("-x");
opt->xflag = Qfalse;
--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/