summaryrefslogtreecommitdiff
path: root/ruby.c
diff options
context:
space:
mode:
authorKenta Murata <mrkn@mrkn.jp>2020-12-08 02:09:53 +0900
committerKenta Murata <mrkn@mrkn.jp>2020-12-08 02:10:03 +0900
commit146b3695c0e1ea0d6cf00442d5524f97d8a75296 (patch)
treeae86a990949b2e20388db1afd970ec3438fbf3cd /ruby.c
parent7e69296a2be8db8814aa0cd0ce6471b80d55b464 (diff)
ruby.c: remove needless substitution of uenc
uenc has already been initialized the top of the function.
Diffstat (limited to 'ruby.c')
-rw-r--r--ruby.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/ruby.c b/ruby.c
index c01d78e..ebea8cc 100644
--- a/ruby.c
+++ b/ruby.c
@@ -1819,9 +1819,6 @@ process_options(int argc, char **argv, ruby_cmdline_options_t *opt)
Init_ruby_description();
Init_enc();
lenc = rb_locale_encoding();
-#if UTF8_PATH
- uenc = rb_utf8_encoding();
-#endif
rb_enc_associate(rb_progname, lenc);
rb_obj_freeze(rb_progname);
parser = rb_parser_new();