• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item7790: TWiki's included version of Locale::Maketext::Lexicon doesn't compile in Perl 5.24

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
NotTWiki Locale::Maketext::Lexicon Normal Closed   minor  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


TWiki ships with its own version (0.49) of Locale::Maketext::Lexicon. Unfortunately, this version is outdated and does not compile under Perl 5.24. It used to issue a warning since 5.14, but now it's about time to act. The error message says:

Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at ...trunk/core/lib/CPAN/lib/Locale/Maketext/Lexicon.pm line 286.

Current versions of Locale::Maketext::Lexicon don't have that issue. In production, if you do have Locale::Maketext::Lexicon installed on your system, then you don't notice the problem, because TWiki prefers system libraries over its own. If you haven't Locale::Maketext::Lexicon installed on your system and rely on TWiki providing it, you'll notice that localisation just doesn't work.

So, in effect, starting with Perl 5.24 TWiki's Locale::Maketext::Lexicon is useless. There are two options:

  1. Upgrade TWiki's version to a current version (e.g. Debian Stable comes with 1.00) or
  2. Drop Locale::Maketext::Lexicon from the distribution.
-- TWiki:Main/HaraldJoerg - 2017-04-02

Discussed at TWiki:Codev/KampalaReleaseMeeting2017x05x04:

  • Need to ship latest version

-- TWiki:Main.PeterThoeny - 2017-04-21

Summary TWiki's included version of Locale::Maketext::Lexicon doesn't compile in Perl 5.24
ReportedBy TWiki:Main.HaraldJoerg
Codebase ~twiki4
SVN Range TWiki-6.0.2-trunk, Sun, 12 Feb 2017, build 30309
AppliesTo NotTWiki
Component Locale::Maketext::Lexicon
Priority Normal
CurrentState Closed

Checkins TWikirev:30386
TargetRelease minor

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r5 - 2018-07-17 - PeterThoeny
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2020 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback