mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* parse.y (ripper_initialize): move parser->enc initialization.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15100 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
231ab57f6f
commit
15baeee701
2 changed files with 3 additions and 0 deletions
|
@ -9,6 +9,8 @@ Fri Jan 18 09:22:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
|||
* encoding.c (rb_enc_find_index): use ASCII-8BIT if loading known
|
||||
encoding failed.
|
||||
|
||||
* parse.y (ripper_initialize): move parser->enc initialization.
|
||||
|
||||
Fri Jan 18 07:06:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* io.c (Init_IO): stdin/stdout may not be duplex.
|
||||
|
|
1
parse.y
1
parse.y
|
@ -9677,6 +9677,7 @@ ripper_initialize(int argc, VALUE *argv, VALUE self)
|
|||
else {
|
||||
StringValue(src);
|
||||
parser->parser_lex_gets = lex_get_str;
|
||||
parser->enc = rb_enc_get(src);
|
||||
}
|
||||
parser->parser_lex_input = src;
|
||||
parser->eofp = Qfalse;
|
||||
|
|
Loading…
Reference in a new issue