The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
# encoding: GB18030
# This file is encoded in GB18030.
die "This file is not encoded in GB18030.\n" if q{‚ } ne "\x82\xa0";

my $__FILE__ = __FILE__;

use Char;
print "1..1\n";

my $chcp = '';
if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/oxms) {
    $chcp = `chcp`;
}
if ($chcp !~ /932|936/oxms) {
    print "ok - 1 # SKIP $^X $0\n";
    exit;
}

open(FILE,'>F‹@”\') || die "Can't open file: F‹@”\\n";
print FILE "1\n";
close(FILE);

# stat
if (stat('F‹@”\')) {
    print "ok - 1 stat $^X $__FILE__\n";
}
else {
    print "not ok - 1 stat: $! $^X $__FILE__\n";
}

unlink('F‹@”\');

__END__