Skip to content

Commit

Permalink
Merge pull request #2671 from rossabaker/fix-jdk8-decodecwithcharset
Browse files Browse the repository at this point in the history
Fix decodeCWithCharset with JDK8
  • Loading branch information
mpilquist authored Oct 7, 2021
2 parents 7cff383 + 7351481 commit 0144914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/shared/src/main/scala/fs2/text.scala
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ object text {
decoder: CharsetDecoder,
out: CharBuffer
): Pull[F, String, Unit] = {
out.clear()
(out: Buffer).clear()
decoder.flush(out) match {
case res if res.isUnderflow =>
if (out.position() > 0) {
Expand Down

0 comments on commit 0144914

Please sign in to comment.