[PRISM] Process encoding on CLI for -K
This commit is contained in:
parent
b7ca4b1e2d
commit
97810cbbf2
4
ruby.c
4
ruby.c
@ -2118,6 +2118,10 @@ prism_script(ruby_cmdline_options_t *opt, pm_parse_result_t *result)
|
||||
|
||||
pm_options_frozen_string_literal_set(&result->options, rb_iseq_opt_frozen_string_literal());
|
||||
|
||||
if (opt->ext.enc.name != 0) {
|
||||
pm_options_encoding_set(options, StringValueCStr(opt->ext.enc.name));
|
||||
}
|
||||
|
||||
uint8_t command_line = 0;
|
||||
if (opt->do_split) command_line |= PM_OPTIONS_COMMAND_LINE_A;
|
||||
if (opt->do_line) command_line |= PM_OPTIONS_COMMAND_LINE_L;
|
||||
|
Loading…
x
Reference in New Issue
Block a user