Skip to content

Commit 5adb6ec

Browse files
committed
Pass the correct encoding in YARPTranslator for SymbolNode
1 parent b112ecd commit 5adb6ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/truffleruby/parser/YARPTranslator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -884,7 +884,7 @@ private String toString(Nodes.Node node) {
884884
}
885885

886886
private String toString(Nodes.SymbolNode node) {
887-
return new String(node.unescaped);
887+
return new String(node.unescaped, EncodingManager.charsetForEncoding(sourceEncoding.jcoding));
888888
}
889889

890890
private SourceSection getSourceSection(Nodes.Node yarpNode) {

0 commit comments

Comments
 (0)