Skip to content

Commit

Permalink
Test for RT #131961.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Sep 4, 2017
1 parent 43a0d86 commit 5f7605d
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion S32-io/io-handle.t
Expand Up @@ -3,7 +3,7 @@ use lib <t/spec/packages>;
use Test;
use Test::Util;

plan 27;
plan 28;

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

Expand Down Expand Up @@ -270,3 +270,12 @@ subtest '.print-nl method' => {
$fh.close;
}
}

# RT #131961
{
my $file = make-temp-file;
given $file.IO {
.spurt: "a" x (2**20 - 1) ~ "«";
lives-ok { for .lines { } }, 'No spurious malformed UTF-8 error';
}
}

0 comments on commit 5f7605d

Please sign in to comment.