diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-25 18:49:28 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-25 18:49:28 +0000 |
commit | 2160c40fb2ef40e8a7ad593239fac3558e2639f1 (patch) | |
tree | 83f32a2e5213b0fc5e9217b137c1a0bbfef44725 /parse.y | |
parent | 13b5b22ae63cb35adc7e73f8f3d248a6ffd46ad1 (diff) |
* parse.y (parser_initialize): set default script encoding as US-ASCII.
* ruby.c (load_file): ditto.
* ruby.c (process_options): set script encoding of -e from locale
except when -K is specified.
* ruby.c (load_file): set script encoding of stdin from locale except
when -K is specified. [ruby-dev:33375]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -9222,7 +9222,7 @@ parser_initialize(struct parser_params *parser) #ifdef YYMALLOC parser->heap = NULL; #endif - parser->enc = rb_ascii8bit_encoding(); + parser->enc = rb_usascii_encoding(); } extern void rb_mark_source_filename(char *); |