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:
parent
509ed0d94f
commit
615d5068d2
2 changed files with 5 additions and 0 deletions
|
|
@ -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>
|
Fri Oct 28 06:06:08 2011 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* ext/sdbm/_sdbm.c (sdbm_prep): set FD_CLOEXEC flags for file
|
* ext/sdbm/_sdbm.c (sdbm_prep): set FD_CLOEXEC flags for file
|
||||||
|
|
|
||||||
1
parse.y
1
parse.y
|
|
@ -5440,6 +5440,7 @@ parser_nextc(struct parser_params *parser)
|
||||||
if (parser->tokp < lex_pend) {
|
if (parser->tokp < lex_pend) {
|
||||||
if (NIL_P(parser->delayed)) {
|
if (NIL_P(parser->delayed)) {
|
||||||
parser->delayed = rb_str_buf_new(1024);
|
parser->delayed = rb_str_buf_new(1024);
|
||||||
|
rb_enc_associate(parser->delayed, parser->enc);
|
||||||
rb_str_buf_cat(parser->delayed,
|
rb_str_buf_cat(parser->delayed,
|
||||||
parser->tokp, lex_pend - parser->tokp);
|
parser->tokp, lex_pend - parser->tokp);
|
||||||
parser->delayed_line = ruby_sourceline;
|
parser->delayed_line = ruby_sourceline;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue