sub getEncoding
{
- my ($class,$name) = @_;
+ my ($class,$name,$skip_external) = @_;
my $enc;
if (ref($name) && $name->can('new_sequence'))
{
$oc = $class->findAlias($lc) if $lc ne $name;
return $oc if defined $oc;
- if (exists $external_tables{$lc})
+ if (!$skip_external and exists $external_tables{$lc})
{
require $external_tables{$lc};
return $encoding{$name} if exists $encoding{$name};
sub find_encoding
{
- my ($name) = @_;
- return __PACKAGE__->getEncoding($name);
+ my ($name,$skip_external) = @_;
+ return __PACKAGE__->getEncoding($name,$skip_external);
}
sub encode
if ($name =~ /^(.*)\.enc$/)
{
my $canon = $1;
- my $obj = find_encoding($canon);
+ my $obj = find_encoding($canon, 1); # skip external tables
if (!defined($obj))
{
my $obj = bless { Name => $canon, File => "$dir/Encode/$name"},__PACKAGE__;