summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-25 18:49:28 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-25 18:49:28 +0000
commit2160c40fb2ef40e8a7ad593239fac3558e2639f1 (patch)
tree83f32a2e5213b0fc5e9217b137c1a0bbfef44725 /parse.y
parent13b5b22ae63cb35adc7e73f8f3d248a6ffd46ad1 (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.y2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse.y b/parse.y
index 140e320fea..b6dbcd7c2b 100644
--- a/parse.y
+++ b/parse.y
@@ -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 *);