The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!perl -w

BEGIN {
    use Config;
    if ($Config{extensions} !~ /\bEncode\b/) {
	print "1..0 # Skip: no Encode\n";
	exit 0;
    }
}

use Config;

use Test::More (ord("A") == 65 && $Config{useperlio})
               ? (tests => 1)
               : (skip_all => '(No PerlIO enabled;'
                            . ' or is EBCDIC platform which doesnt have'
                            . ' "use encoding" used by open ":locale")');
BEGIN {
    $SIG{__WARN__} = sub { $warn .= $_[0] };
}

# bug #41442
use PerlIO::encoding;
use open ':locale';
if ($warn !~ /Cannot find encoding/) {
    if (-e '/dev/null') { open STDERR, '>', '/dev/null' }
    warn "# \x{201e}\n"; # „
}
ok(1); # we got that far