Subject: | uninitialized value in get_encoding() |
On Windows at least, if the LANG variable is not set, both
Locale::Maketext::Lexicon::encoding() and encoding::_get_locale_encoding
() attempts will fail, which will then make the code feed an
uninitialized value to resolve_alias(). The value will then travel
several levels down the call stack, until it blows up and causes pages
and pages of uninitialized variable notices to be printed.
Proposed fix is to let the user know that the environment variable should
be set, and/or add a third fallback value of 'utf8' into the chain of
lookups.