# encoding: Sjis
# This file is encoded in ShiftJIS.
die "This file is not encoded in ShiftJIS.\n" if q{ } ne "\x82\xa0";
use Sjis;
print "1..1\n";
my $__FILE__ = __FILE__;
if ($^O eq 'MacOS') {
print "ok - 1 # SKIP $^X $0\n";
exit;
}
my $chcp = '';
if ($^O =~ /\A (?: MSWin32 | NetWare | symbian | dos ) \z/oxms) {
$chcp = `chcp`;
}
if ($chcp !~ /932/oxms) {
print "ok - 1 # SKIP $^X $0\n";
exit;
}
if (defined($ENV{'PERL5SHELL'}) and ($ENV{'PERL5SHELL'} =~ /Win95Cmd\.exe/xmsi)) {
print "ok - 1 # SKIP $^X $0\n";
exit;
}
open(FILE,'>F@\') || die "Can't open file: F@\\n";
print FILE "1\n";
close(FILE);
# system
my $command;
if (($ENV{'PERL5SHELL'}||$ENV{'COMSPEC'}) =~ / \\COMMAND\.COM \z/oxmsi) {
$command = 'dir /b F@\ >NUL';
}
else {
$command = 'dir /b F@\ >NUL 2>NUL';
}
if (system($command) == 0) {
print "ok - 1 system $^X $__FILE__\n";
}
else {
print "not ok - 1 system: $! $^X $__FILE__\n";
}
unlink('F@\');
__END__