Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/org/jruby/util/io/EncodingUtils.java
Original file line number Diff line number Diff line change
@@ -2008,6 +2008,7 @@ public static IRubyObject encUintChr(ThreadContext context, int code, Encoding e
if (enc.length(strBytes.unsafeBytes(), strBytes.begin(), strBytes.realSize()) != n) {
throw runtime.newRangeError("invalid codepoint " + Integer.toHexString(code) + " in " + enc);
}
strBytes.length(n);
return str;

}

0 comments on commit d020f6f

Please sign in to comment.