Skip to content

Commit

Permalink
[Truffle] Fixnum#to_s specs.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisseaton committed Jan 12, 2015
1 parent f6827eb commit 7ac8d1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Expand Up @@ -12,6 +12,7 @@
import com.oracle.truffle.api.CompilerDirectives.TruffleBoundary;
import org.jcodings.Encoding;
import org.jcodings.specific.ASCIIEncoding;
import org.jcodings.specific.USASCIIEncoding;
import org.jcodings.specific.UTF8Encoding;
import org.jruby.runtime.Helpers;
import org.jruby.truffle.nodes.RubyNode;
Expand All @@ -34,7 +35,7 @@ public RubyString(RubyClass stringClass, ByteList bytes) {
}

public static RubyString fromJavaString(RubyClass stringClass, String string) {
return new RubyString(stringClass, new ByteList(org.jruby.RubyEncoding.encodeUTF8(string), ASCIIEncoding.INSTANCE, false));
return new RubyString(stringClass, new ByteList(org.jruby.RubyEncoding.encodeUTF8(string), USASCIIEncoding.INSTANCE, false));
}

public static RubyString fromByteList(RubyClass stringClass, ByteList bytes) {
Expand Down
2 changes: 0 additions & 2 deletions spec/truffle/tags/core/fixnum/to_s_tags.txt

This file was deleted.

0 comments on commit 7ac8d1f

Please sign in to comment.