• 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.

Item7797: TWiki with current Perl: Escape left braces in regular expressions (core)

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Normal Closed TWiki:Main.HaraldJoerg minor 6.1.0

Edit Form Data

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


In Perl 5.24, left braces { in regular expressions should be escaped as \{ to distinguish them clearly from the match count {n,m}, otherwise a warning will be printed during compilation. In TWikis without persistent Perl interpreter this floods the error logs. A fix should be available before Linux distributions start shipping Perl 5.24.

This is the item for the core components.

See TWiki:Codev.TWikiWithCurrentPerl for details.

-- TWiki:Main/HaraldJoerg - 2017-04-07

Ouch - in Rev. 30374 I inadvertedly committed a fix to the unescaped left braces in all of trunk. So, right now, all occurences which can be detected by (1) compiling or (2) running TWikiSuite.pm should be done.

-- TWiki:Main.HaraldJoerg - 2017-08-17

As of now, both the compilation check and the unit test suite are clear of warnings, up to Perl 5.26 and including the next Perl development version (5.27.5 right now). Therefore, I consider this done.

-- TWiki:Main.HaraldJoerg - 2017-11-03

Attempting to move my wiki ( installed Nov 29 2015 using TWiki-6.0.2.tgz ) to a new box with perl5 (revision 5 version 26 subversion 2) - I get Unescaped left brace in regex is illegal here. How best to fix it?

-- TWiki:Main.GondaEnnis - 2018-06-12

For those who come after me ............Found the patch



-- TWiki:Main.GondaEnnis - 2018-06-12

Above patch did not patch plugins etc so I installed another lower version of perl. I saw no other fast way to get up and running.

-- TWiki:Main.GondaEnnis - 2018-06-12

Summary TWiki with current Perl: Escape left braces in regular expressions (core)
ReportedBy TWiki:Main.HaraldJoerg

SVN Range TWiki-6.0.2-trunk, Sun, 12 Feb 2017, build 30309
AppliesTo Engine

Priority Normal
CurrentState Closed
WaitingFor TWiki:Main.HaraldJoerg
Checkins TWikirev:30318 TWikirev:30373 TWikirev:30374 TWikirev:30384 TWikirev:30389
TargetRelease minor
ReleasedIn 6.1.0
Edit | Attach | Watch | Print version | History: r12 < r11 < r10 < r9 < r8 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r12 - 2018-07-17 - PeterThoeny
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback