Item14406: Locale::Code crashes for unknown languages with Perl 5.26.
Priority: Normal
Current State: Closed
Released In: 2.1.4
Target Release: patch
Applies To: Engine
Component: Configure,
I18N
Branches: Release02x01 master
Item14288
Configure LANGUAGES pluggable fails with:
WARNING: Can't load pluggable LANGUAGES: ERROR: _code: code not in codeset: tlh [alpha-2]
at /home/gac/perl5/perlbrew/perls/perl-5.26.0-RC1/lib/5.26.0/Locale/Language.pm line 41.
--
GeorgeClark - 23 May 2017
Seems to be a change in Locale::Codes, where it used to just return undef for missing languages, as of perl 5.26, it crashes. As this is only used in the LANGUAGES pluggable to show the language names for the files it finds, wrapping the calls in eval{} seems to resolve the issue.
--
GeorgeClark - 23 May 2017