summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Valentine-House <[email protected]>2024-01-29 14:11:34 +0000
committerKevin Newton <[email protected]>2024-01-29 10:04:16 -0500
commitc422805bbb95b1a45de1873d51cc1ec4fbbd27a0 (patch)
tree3abef87ded43f966bc78f59b934aa02bbb571d1f
parent3e6e3ca2627b1aa71b17de902cc1b8188246a828 (diff)
[PRISM] Fix encoding for interpolated strings.
This wasn't taking into account strings with flags set on the containing node that could affect the encoding. It does now
-rw-r--r--prism_compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/prism_compile.c b/prism_compile.c
index ecbe8810ba..88172716af 100644
--- a/prism_compile.c
+++ b/prism_compile.c
@@ -737,7 +737,7 @@ pm_interpolated_node_compile(pm_node_list_t *parts, rb_iseq_t *iseq, NODE dummy_
if (PM_NODE_TYPE_P(part, PM_STRING_NODE)) {
pm_string_node_t *string_node = (pm_string_node_t *)part;
- VALUE string_value = parse_string(&string_node->unescaped, parser);
+ VALUE string_value = parse_string_encoded((pm_node_t *)string_node, &string_node->unescaped, parser);
if (RTEST(current_string)) {
current_string = rb_str_concat(current_string, string_value);
}