Skip to content
Permalink
Browse files
Fixes #2258. Encoding issue with backticks
  • Loading branch information
enebo committed Dec 3, 2014
1 parent 5e0ee3c commit 2c6af6dcdc5608fdba846cf8eeb8f7f184905b06
@@ -31,6 +31,7 @@
***** END LICENSE BLOCK *****/
package org.jruby.ast;

import org.jcodings.Encoding;
import org.jruby.Ruby;
import org.jruby.ast.types.ILiteralNode;
import org.jruby.ast.visitor.NodeVisitor;
@@ -48,6 +49,10 @@ public DXStrNode(ISourcePosition position, DStrNode node) {
super(position);
addAll(node);
}

public DXStrNode(ISourcePosition position, Encoding encoding) {
super(position, encoding);
}

public DXStrNode(ISourcePosition position) {
super(position);
@@ -69,6 +74,8 @@ public Object accept(NodeVisitor iVisitor) {

@Override
public IRubyObject interpret(Ruby runtime, ThreadContext context, IRubyObject self, Block aBlock) {
return self.callMethod(context, "`", super.interpret(runtime, context, self, aBlock));
IRubyObject string = super.interpret(runtime, context, self, aBlock);

return self.callMethod(context, "`", string);
}
}
Empty file.

0 comments on commit 2c6af6d

Please sign in to comment.