From 2160c40fb2ef40e8a7ad593239fac3558e2639f1 Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 25 Jan 2008 18:49:28 +0000 Subject: * 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 --- parse.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'parse.y') 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 *); -- cgit v1.2.3