mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
2 changed files with 8 additions and 0 deletions
|
@ -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>
|
||||
|
||||
* 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_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;
|
||||
|
|
Loading…
Reference in a new issue