Skip to content

Commit

Permalink
try binary
Browse files Browse the repository at this point in the history
  • Loading branch information
ahorek committed Aug 27, 2022
1 parent 42882c1 commit 06538f8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/src/main/java/org/jruby/RubyString.java
Expand Up @@ -651,7 +651,6 @@ public static RubyString newEmptyString(Ruby runtime) {
}

private static final ByteList EMPTY_ASCII8BIT_BYTELIST = new ByteList(ByteList.NULL_ARRAY, ASCIIEncoding.INSTANCE);
private static final ByteList EMPTY_USASCII_BYTELIST = new ByteList(ByteList.NULL_ARRAY, USASCIIEncoding.INSTANCE);

public static RubyString newAllocatedString(Ruby runtime, RubyClass metaClass) {
RubyString empty = new RubyString(runtime, metaClass, EMPTY_ASCII8BIT_BYTELIST);
Expand All @@ -660,7 +659,7 @@ public static RubyString newAllocatedString(Ruby runtime, RubyClass metaClass) {
}

public static RubyString newEmptyString(Ruby runtime, RubyClass metaClass) {
RubyString empty = new RubyString(runtime, metaClass, EMPTY_USASCII_BYTELIST);
RubyString empty = new RubyString(runtime, metaClass, EMPTY_ASCII8BIT_BYTELIST);
empty.shareLevel = SHARE_LEVEL_BYTELIST;
return empty;
}
Expand Down

0 comments on commit 06538f8

Please sign in to comment.