From c50d192ebfcac758664afb26241ba25b35ed0977 Mon Sep 17 00:00:00 2001 From: Audrey Tang Date: Tue, 12 Mar 2002 19:55:06 +0800 Subject: [PATCH] Re: ext/Encode/t/Tcl.t on VMS @15173 Message-Id: <20020312035506.GA6946@not.autrijus.org> p4raw-link: @15173 on //depot/perl: 2a3d532f608c7c5e0c317bfba640d088125b93a3 p4raw-id: //depot/perl@15181 --- ext/Encode/Encode.pm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/ext/Encode/Encode.pm b/ext/Encode/Encode.pm index 2084354..8a9cc00 100644 --- a/ext/Encode/Encode.pm +++ b/ext/Encode/Encode.pm @@ -243,16 +243,19 @@ sub getEncoding { return $encoding{$lc}; } + + my $oc = $class->findAlias($name); + return $oc if defined $oc; + + $oc = $class->findAlias($lc) if $lc ne $name; + return $oc if defined $oc; + if (exists $external_tables{$lc}) { require $external_tables{$lc}; return $encoding{$name} if exists $encoding{$name}; } - my $oc = $class->findAlias($name); - return $oc if defined $oc; - return $class->findAlias($lc) if $lc ne $name; - return; } -- 2.7.4