* ruby.c (load_file): parse shebang in us-ascii. a patch from
sheepman <sheepman AT sheepman.sakura.ne.jp> in [ruby-dev:33955] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
601616d6ff
commit
6a9bfa23bf
@ -1,3 +1,8 @@
|
|||||||
|
Sun Mar 2 10:13:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@ruby-lang.org>
|
Sun Mar 2 00:08:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
* object.c (rb_cstr_to_dbl): check for successive underscores.
|
* object.c (rb_cstr_to_dbl): check for successive underscores.
|
||||||
|
3
ruby.c
3
ruby.c
@ -1155,6 +1155,9 @@ load_file(VALUE parser, const char *fname, int script, struct cmdline_options *o
|
|||||||
int no_src_enc = !opt->src.enc.name;
|
int no_src_enc = !opt->src.enc.name;
|
||||||
int no_ext_enc = !opt->ext.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) {
|
if (opt->xflag) {
|
||||||
forbid_setid("-x");
|
forbid_setid("-x");
|
||||||
opt->xflag = Qfalse;
|
opt->xflag = Qfalse;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user