Dne Čt 29.dub.2010 21:48:31, user42@zip.com.au napsal(a):
Show quoted text> The _get_locale_encoding() in encoding.pm looks like a pretty handy
> thing to make available for everyone to use.
>
> I saw the comment about open.pm using it, and HTTP::Response currently
> uses it too. Things like PerlIO::locale would benefit from a locale
> charset in a form Encode will (or should) accept.
Now when `encoding' is deprecated, it's very bad that core module `open' still requires it because it calls the _get_locale_encoding(), from open.pm:
if ($layer eq 'locale') {
require Encode;
require encoding;
$locale_encoding = encoding::_get_locale_encoding()
unless defined $locale_encoding;
...
}
I propose to move the _get_locale_encoding() to different module than `encoding'.