summaryrefslogtreecommitdiffstats
path: root/ruby.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-28 19:42:59 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-28 19:42:59 +0000
commitd43f11a4bf55e9ab4d5e304f18a87ceeeebf5c49 (patch)
tree297b33fa6e5f965a063222cdae0de48222ddd588 /ruby.c
parentde71a6b654a77a171c441c4382a03eb7ea384dbe (diff)
downloadruby-d43f11a4bf55e9ab4d5e304f18a87ceeeebf5c49.tar.gz
ruby-d43f11a4bf55e9ab4d5e304f18a87ceeeebf5c49.tar.xz
ruby-d43f11a4bf55e9ab4d5e304f18a87ceeeebf5c49.zip
* ruby.c (process_options): call rb_filesystem_encoding().
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25555 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 4c2d56664..8c7e88b22 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)) {