summaryrefslogtreecommitdiffstats
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
commit9cda1ed2c321f61a356d9c8d1cb6033f4a41ff42 (patch)
tree83f32a2e5213b0fc5e9217b137c1a0bbfef44725 /parse.y
parent2faf2957bf64cf5cd4cbe0da67efb7c70f54c645 (diff)
downloadruby-9cda1ed2c321f61a356d9c8d1cb6033f4a41ff42.tar.gz
ruby-9cda1ed2c321f61a356d9c8d1cb6033f4a41ff42.tar.xz
ruby-9cda1ed2c321f61a356d9c8d1cb6033f4a41ff42.zip
* 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: http://svn.ruby-lang.org/repos/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 140e320fe..b6dbcd7c2 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 *);