Skip to content

Commit 5f7605d

Browse files
committed
Test for RT #131961.
1 parent 43a0d86 commit 5f7605d

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

S32-io/io-handle.t

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use lib <t/spec/packages>;
33
use Test;
44
use Test::Util;
55

6-
plan 27;
6+
plan 28;
77

88
my $path = "io-handle-testfile";
99

@@ -270,3 +270,12 @@ subtest '.print-nl method' => {
270270
$fh.close;
271271
}
272272
}
273+
274+
# RT #131961
275+
{
276+
my $file = make-temp-file;
277+
given $file.IO {
278+
.spurt: "a" x (2**20 - 1) ~ "«";
279+
lives-ok { for .lines { } }, 'No spurious malformed UTF-8 error';
280+
}
281+
}

0 commit comments

Comments
 (0)