diff options
author | Audrey Tang <cpan@audreyt.org> | 2002-03-12 20:56:46 +0800 |
---|---|---|
committer | Abhijit Menon-Sen <ams@wiw.org> | 2002-03-12 04:04:34 +0000 |
commit | dd9703c97d9c97246c909791992f0b966b2be5d5 (patch) | |
tree | 7f02121c48d02d147be1593477a168db76c5cce4 /ext | |
parent | c50d192ebfcac758664afb26241ba25b35ed0977 (diff) | |
download | perl-dd9703c97d9c97246c909791992f0b966b2be5d5.tar.gz |
Re: ext/Encode/t/Tcl.t on VMS @15173
Message-Id: <20020312045646.GA7689@not.autrijus.org>
(Private mail.)
p4raw-link: @15173 on //depot/perl: 2a3d532f608c7c5e0c317bfba640d088125b93a3
p4raw-id: //depot/perl@15182
Diffstat (limited to 'ext')
-rw-r--r-- | ext/Encode/Encode.pm | 8 | ||||
-rw-r--r-- | ext/Encode/lib/Encode/Tcl.pm | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ext/Encode/Encode.pm b/ext/Encode/Encode.pm index 8a9cc009ed..6a8fb89545 100644 --- a/ext/Encode/Encode.pm +++ b/ext/Encode/Encode.pm @@ -228,7 +228,7 @@ sub define_encoding sub getEncoding { - my ($class,$name) = @_; + my ($class,$name,$skip_external) = @_; my $enc; if (ref($name) && $name->can('new_sequence')) { @@ -250,7 +250,7 @@ sub getEncoding $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}; @@ -261,8 +261,8 @@ sub getEncoding sub find_encoding { - my ($name) = @_; - return __PACKAGE__->getEncoding($name); + my ($name,$skip_external) = @_; + return __PACKAGE__->getEncoding($name,$skip_external); } sub encode diff --git a/ext/Encode/lib/Encode/Tcl.pm b/ext/Encode/lib/Encode/Tcl.pm index 95ed572115..c423d8e968 100644 --- a/ext/Encode/lib/Encode/Tcl.pm +++ b/ext/Encode/lib/Encode/Tcl.pm @@ -21,7 +21,7 @@ sub INC_search 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__; |