Subject: | |
Date: | Sat, 19 Oct 2013 11:41:18 +0300 |
To: | bug-Encode-Locale [...] rt.cpan.org |
From: | Afanasiy Fet <dailylama [...] gmail.com> |
R:\ae\perl>echo use LWP::Simple; > lwp.pl
R:\ae\perl>perl -Wc lwp.pl
Name "Encode::Locale::ENCODING_CP1251" used only once: possible typo
at R:/strawberry/perl/vendor/lib/Encode/Locale.pm line 106.
lwp.pl syntax OK
R:\ae\perl>cpanm Encode::Locale
Encode::Locale is up to date. (1.03)
R:\ae\perl>perl -v
This is perl 5, version 16, subversion 3 (v5.16.3) built for MSWin32-x64-multi-t
hread
quick fix
_init();
Encode::Alias::define_alias(sub {
no strict 'refs';
no warnings 'once';
my $a = defined ${"ENCODING_" . uc(shift)};
if ($a) {
return ${"ENCODING_" . uc(shift)};
}
return "ENCODING_UTF8";
}, "locale");
Message body is not shown because sender requested not to inline it.