diff options
| author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-28 02:30:22 +0000 |
|---|---|---|
| committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-10-28 02:30:22 +0000 |
| commit | 615d5068d29ec07464c8057e15556d0c1df70187 (patch) | |
| tree | aff45ddf00bde2a30a3e9db252c74a28a7f634cf | |
| parent | 509ed0d94fea08f9e08767ddfa8564b9f9237c88 (diff) | |
* 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
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | parse.y | 1 |
2 files changed, 5 insertions, 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> * ext/sdbm/_sdbm.c (sdbm_prep): set FD_CLOEXEC flags for 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; |
