1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* parse.y (parser_nextc): set encoding for the buffer of ripper.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2011-10-28 02:30:22 +00:00
parent 509ed0d94f
commit 615d5068d2
2 changed files with 5 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Thu Oct 27 18:58:00 2011 NARUSE, Yui <naruse@ruby-lang.org>
* parse.y (parser_nextc): set encoding for the buffer of ripper.
Fri Oct 28 06:06:08 2011 Tanaka Akira <akr@fsij.org>
* ext/sdbm/_sdbm.c (sdbm_prep): set FD_CLOEXEC flags for file

View file

@ -5440,6 +5440,7 @@ parser_nextc(struct parser_params *parser)
if (parser->tokp < lex_pend) {
if (NIL_P(parser->delayed)) {
parser->delayed = rb_str_buf_new(1024);
rb_enc_associate(parser->delayed, parser->enc);
rb_str_buf_cat(parser->delayed,
parser->tokp, lex_pend - parser->tokp);
parser->delayed_line = ruby_sourceline;