Skip to content

Commit 574c478

Browse files
authored
Merge pull request jruby#9312 from headius/time_xmlschema_usascii
Construct xmlschema string as US-ASCII
2 parents 3c116ac + 4e6cc60 commit 574c478

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/org/jruby/RubyTime.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -775,7 +775,7 @@ public RubyString xmlschema(ThreadContext context, IRubyObject[] args) {
775775
pos = fillDigitsAfterChar(buf, pos, ':', offset % 60, 2, 10);
776776
}
777777

778-
return newString(context, new ByteList(buf, false));
778+
return newString(context, new ByteList(buf, USASCIIEncoding.INSTANCE, false));
779779
}
780780

781781
private static int fillDigits(byte[] buf, int begin, int number, int size, int divisor) {

0 commit comments

Comments
 (0)