diff options
author | Kevin Newton <[email protected]> | 2024-08-15 11:00:16 -0400 |
---|---|---|
committer | Kevin Newton <[email protected]> | 2024-08-15 13:34:25 -0400 |
commit | de28ef7db49f8f8d4a46df808e1fbbc18c053ba9 (patch) | |
tree | fecd662a23a3f18acdd7aa351db8756902dfbc8c /ruby.c | |
parent | eb08a2805c59efdd6cf9f7058a91d9fc9aeb94fe (diff) |
[PRISM] Use src encoding not ext encoding
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/11386
Diffstat (limited to 'ruby.c')
-rw-r--r-- | ruby.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2142,8 +2142,8 @@ prism_script(ruby_cmdline_options_t *opt, pm_parse_result_t *result) pm_options_t *options = &result->options; pm_options_line_set(options, 1); - if (opt->ext.enc.name != 0) { - pm_options_encoding_set(options, StringValueCStr(opt->ext.enc.name)); + if (opt->src.enc.name != 0) { + pm_options_encoding_set(options, StringValueCStr(opt->src.enc.name)); } uint8_t command_line = prism_script_command_line(opt); |