#!../perl
BEGIN {
chdir 't';
}
print "1..0 # Skip: Encode was not built\n";
exit 0;
}
}
use strict;
use Encode;
my %a2c;
my $ON_EBCDIC;
%a2c = (
'US-ascii' => 'ascii',
'ISO-646-US' => 'ascii',
'UTF-8' => 'utf8',
'UCS-2' => 'UCS-2BE',
'UCS2' => 'UCS-2BE',
'iso-10646-1' => 'UCS-2BE',
'ucs2-le' => 'UCS-2LE',
'ucs2-be' => 'UCS-2BE',
'utf16' => 'UTF-16',
'utf32' => 'UTF-32',
'utf16-be' => 'UTF-16BE',
'utf32-be' => 'UTF-32BE',
'utf16-le' => 'UTF-16LE',
'utf32-le' => 'UTF-32LE',
'UCS4-BE' => 'UTF-32BE',
'UCS-4-LE' => 'UTF-32LE',
'cyrillic' => 'iso-8859-5',
'arabic' => 'iso-8859-6',
'greek' => 'iso-8859-7',
'hebrew' => 'iso-8859-8',
'thai' => 'iso-8859-11',
'tis620' => 'iso-8859-11',
'WinLatin1' => 'cp1252',
'WinLatin2' => 'cp1250',
'WinCyrillic' => 'cp1251',
'WinGreek' => 'cp1253',
'WinTurkish' => 'cp1254',
'WinHebrew' => 'cp1255',
'WinArabic' => 'cp1256',
'WinBaltic' => 'cp1257',
'WinVietnamese' => 'cp1258',
'koi8r' => 'koi8-r',
'koi8u' => 'koi8-u',
#
);
for my $i (1..11,13..16){
}
for my $i (1..10){
}
my $v = $Encode::Alias::Winlatin2cp{$k};
}
}
}
}
if ($ON_EBCDIC){
};
}
print "# alias test; \$ON_EBCDIC == $ON_EBCDIC\n";
}
# now we override some of the aliases and see if it works fine
);
print "# alias test with alias overrides\n";
}
print "# alias undef test\n";
}
print "# alias reinit test\n";
init_a2c();
}
$k =~ /[A-Z]/ and next;
}