mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* common.mk: use -Ks when read insns.def. [ruby-dev#33185]
* parse.y: fix -e and stdin strings aren't set encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15136 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9a1d7e4d01
commit
54a230bf7a
3 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
Sun Jan 20 09:12:26 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* common.mk: use -Ks when read insns.def. [ruby-dev#33185]
|
||||
|
||||
* parse.y: fix -e and stdin strings aren't set encoding.
|
||||
|
||||
Sun Jan 20 05:12:44 2008 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* enc/make_encdb.rb: fix duplication check.
|
||||
|
|
|
@ -678,7 +678,7 @@ INSNS2VMOPT = --srcdir="$(srcdir)"
|
|||
|
||||
$(INSNS): $(srcdir)/insns.def {$(VPATH)}vm_opts.h
|
||||
$(RM) $(PROGRAM)
|
||||
$(BASERUBY) $(srcdir)/tool/insns2vm.rb $(INSNS2VMOPT)
|
||||
$(BASERUBY) -Ks $(srcdir)/tool/insns2vm.rb $(INSNS2VMOPT)
|
||||
|
||||
minsns.inc: $(srcdir)/template/minsns.inc.tmpl
|
||||
|
||||
|
|
2
parse.y
2
parse.y
|
@ -4729,7 +4729,7 @@ lex_get_str(struct parser_params *parser, VALUE s)
|
|||
if (*end++ == '\n') break;
|
||||
}
|
||||
lex_gets_ptr = end - RSTRING_PTR(s);
|
||||
return STR_NEW(beg, end - beg);
|
||||
return rb_enc_str_new(beg, end - beg, rb_enc_get(s));
|
||||
}
|
||||
|
||||
static VALUE
|
||||
|
|
Loading…
Add table
Reference in a new issue