Skip to content

Commit

Permalink
Added test for RT#78844
Browse files Browse the repository at this point in the history
  • Loading branch information
xdg committed Nov 6, 2010
1 parent b031d0e commit 54f3160
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion t/io/layers.t
Expand Up @@ -43,7 +43,7 @@ if (${^UNICODE} & 1) {
} else {
$UTF8_STDIN = 0;
}
my $NTEST = 44 - (($DOSISH || !$FASTSTDIO) ? 7 : 0) - ($DOSISH ? 5 : 0)
my $NTEST = 45 - (($DOSISH || !$FASTSTDIO) ? 7 : 0) - ($DOSISH ? 5 : 0)
+ $UTF8_STDIN;

sub PerlIO::F_UTF8 () { 0x00008000 } # from perliol.h
Expand Down Expand Up @@ -195,6 +195,14 @@ SKIP: {
[ "stdio" ],
"binmode");

# RT78844
{
local $TODO = "RT#78844";
local $@ = "foo";
binmode(F, ":encoding(utf8)");
is( $@, "foo", '$@ not clobbered by binmode and :encoding');
}

close F;

{
Expand Down

0 comments on commit 54f3160

Please sign in to comment.