summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-29 09:40:25 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-29 09:40:25 +0000
commit2f2e8455e3644385e517299163bb538cd4f07030 (patch)
tree74cfabf93ddf40a2958aab05d265a8023e33db03 /ruby.c
parent06346d5849d70ebfcd26e8886dfd6b4303154f0b (diff)
Revert set locale and filesystem encindex in Init_Encoding.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25559 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ruby.c b/ruby.c
index 4c2d566643..8c7e88b228 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1302,6 +1302,7 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
ruby_init_loadpath_safe(opt->safe_level);
rb_enc_find_index("encdb");
lenc = rb_locale_encoding();
+ (void)rb_filesystem_encoding();
rb_enc_associate(rb_progname, lenc);
parser = rb_parser_new();
if (opt->dump & DUMP_BIT(yydebug)) {