* parse.y (parser_prepare): set parser->enc from lex_input for ripper.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
usa 2008-01-09 05:46:35 +00:00
parent a5505ab833
commit 3f2d1892df
2 changed files with 5 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Wed Jan 9 14:44:57 2008 NAKAMURA Usaku <usa@ruby-lang.org>
* parse.y (parser_prepare): set parser->enc from lex_input for ripper.
Wed Jan 9 13:45:52 2008 GOTOU Yuuzou <gotoyuzo@notwork.org>
* lib/webrick/server.rb (WEBrick::HTTPServer#start):

View File

@ -5957,6 +5957,7 @@ parser_prepare(struct parser_params *parser)
return;
}
pushback(c);
parser->enc = rb_enc_get(lex_input);
}
#define IS_ARG() (lex_state == EXPR_ARG || lex_state == EXPR_CMDARG)