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
http://twiki.org/p/pub/Support/SID-02327/twiki-6.0.2-escape-left-braces-in-regex.patch
http://www.twiki.org/cgi-bin/view/Codev/HowToApplyPatch
--
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