/usr/lib/perl5/auto/Tk/getEncoding.al is in perl-tk 1:804.031-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | # NOTE: Derived from blib/lib/Tk.pm.
# Changes made here will be lost when autosplit is run again.
# See AutoSplit.pm.
package Tk;
#line 821 "blib/lib/Tk.pm (autosplit into blib/lib/auto/Tk/getEncoding.al)"
sub getEncoding
{
my ($class,$name) = @_;
eval { require Encode };
if ($@)
{
require Tk::DummyEncode;
return Tk::DummyEncode->getEncoding($name);
}
$name = $Tk::font_encoding{$name} if exists $Tk::font_encoding{$name};
my $enc = Encode::find_encoding($name);
unless ($enc)
{
$enc = Encode::find_encoding($name) if ($name =~ s/[-_]\d+$//)
}
# if ($enc)
# {
# print STDERR "Lookup '$name' => ".$enc->name."\n";
# }
# else
# {
# print STDERR "Failed '$name'\n";
# }
unless ($enc)
{
if ($name eq 'X11ControlChars')
{
require Tk::DummyEncode;
$Encode::encoding{$name} = $enc = Tk::DummyEncode->getEncoding($name);
}
}
return $enc;
}
1;
# end of Tk::getEncoding
|