You are here: Foswiki>Tasks Web>Item14406 (20 Jun 2017, GeorgeClark)Edit Attach

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
Reported By: GeorgeClark
Waiting For:
Last Change By: GeorgeClark
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/ 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
Topic revision: r8 - 20 Jun 2017, GeorgeClark - This page was cached on 19 Jan 2018 - 16:20.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License