diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-15 08:32:12 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-09-15 08:32:12 +0000 |
| commit | 5ab799aa956717438f76eba5226370c2aedcbdb9 (patch) | |
| tree | b688a0bc94b71fbd7625b0d95a01262ffe97a27e /parse.y | |
| parent | 583a15023413b8b9462178b6a90e538794dd3976 (diff) | |
| download | ruby-5ab799aa956717438f76eba5226370c2aedcbdb9.tar.gz ruby-5ab799aa956717438f76eba5226370c2aedcbdb9.tar.xz ruby-5ab799aa956717438f76eba5226370c2aedcbdb9.zip | |
* parse.y (parser_initialize): set default encoding. [ruby-dev:31787]
* ruby.c (load_file): make new parse instance after processing shebang
line options.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -8686,7 +8686,7 @@ parser_initialize(struct parser_params *parser) #ifdef YYMALLOC parser->heap = NULL; #endif - parser->enc = rb_enc_from_index(0); + parser->enc = onigenc_get_default_encoding(); } extern void rb_mark_source_filename(char *); |
