From 2bb26c118d9e52a52940f73c9cb1fc26e07003d6 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 28 Oct 2009 19:42:59 +0000 Subject: * ruby.c (process_options): call rb_filesystem_encoding(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ ruby.c | 1 + 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 31cc4804b5..33ca79a267 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Thu Oct 29 04:41:44 2009 NARUSE, Yui + + * ruby.c (process_options): call rb_filesystem_encoding(). + Thu Oct 29 04:40:36 2009 NARUSE, Yui * io.c (Init_IO): rb_default_rs should be US-ASCII. 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)) { -- cgit v1.2.3