Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 343e47e

Browse files
committed
Init with default external encoding
1 parent 65dad7f commit 343e47e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/java/org/jruby/ext/stringio/StringIO.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ private void strioInit(ThreadContext context, int argc, IRubyObject arg0, IRubyO
342342
if (!string.isNil()) {
343343
string = string.convertToString();
344344
} else if (argc == 0) {
345-
string = RubyString.newEmptyString(runtime, runtime.getDefaultInternalEncoding());
345+
string = RubyString.newEmptyString(runtime, runtime.getDefaultExternalEncoding());
346346
}
347347

348348
if (!string.isNil() && string.isFrozen()) {

0 commit comments

Comments
 (0)