ruby-changes:3647
From: ko1@a...
Date: Sun, 20 Jan 2008 09:15:36 +0900 (JST)
Subject: [ruby-changes:3647] naruse - Ruby:r15136 (trunk): * common.mk: use -Ks when read insns.def. [ruby-dev#33185]
naruse 2008-01-20 09:15:20 +0900 (Sun, 20 Jan 2008) New Revision: 15136 Modified files: trunk/ChangeLog trunk/common.mk trunk/parse.y Log: * common.mk: use -Ks when read insns.def. [ruby-dev#33185] * parse.y: fix -e and stdin strings aren't set encoding. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/parse.y?r1=15136&r2=15135&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=15136&r2=15135&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/common.mk?r1=15136&r2=15135&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 15135) +++ ChangeLog (revision 15136) @@ -1,3 +1,9 @@ +Sun Jan 20 09:12:26 2008 NARUSE, Yui <naruse@r...> + + * 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@r...> * enc/make_encdb.rb: fix duplication check. Index: common.mk =================================================================== --- common.mk (revision 15135) +++ common.mk (revision 15136) @@ -678,7 +678,7 @@ $(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 Index: parse.y =================================================================== --- parse.y (revision 15135) +++ parse.y (revision 15136) @@ -4729,7 +4729,7 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/