You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Found by scalacheck in old http4s implementation
test("handle overflow") {
if (isJVM) { // Charset not supported by Scala.jsvalcs=Charset.forName("x-ISCII91")
vals=Stream(-36.toByte)
.covary[Fallible]
.through(decodeWithCharset(cs))
.compile
.string
assertEquals(s, Right("ी"))
}
}
The output buffer is sized to one character based on chunk length and average size queried from the decoder, but the byte expands to two characters. We need to check the CoderResult for an overflow. [edit: misdiagnosis]
This is one of the rare character sets that needs to be flushed after the final input. You can find more here.
The text was updated successfully, but these errors were encountered:
In fs2-3.1.3, this test fails:
The output buffer is sized to one character based on chunk length and average size queried from the decoder, but the byte expands to two characters. We need to check the[edit: misdiagnosis]CoderResult
for an overflow.This is one of the rare character sets that needs to be flushed after the final input. You can find more here.
The text was updated successfully, but these errors were encountered: