With Perl 5.26.0, 5.26.1 and 5.27.1, a few of the tests for
$SPLIT
in
SpreadSheetPluginTestCases fail like this:
Expected SPLIT |
---|
<ul> <li> $SPLIT(, Apple Orange Kiwi)=|Apple, Orange, Kiwi| </li> <li> $SPLIT(-, Apple-Orange-Kiwi)=|Apple, Orange, Kiwi| </li> <li> $SPLIT([-:]$sp*, Apple-Orange: Kiwi)=|Apple, Orange, Kiwi| </li> <li> $SPLIT($empty, Apple)=|A, p, p, l, e| </li> <li> |
$SPLIT(x)=|| |
$SPLIT(x)=|*| |
</li> <li> |
$SPLIT()=|| |
$SPLIT()=|*| |
</li> </ul> |
After some debugging I came to the conclusion that the behaviour of Perl 5.26 is broken and have filed a bug report (
https://rt.perl.org/Public/Bug/Display.html?id=132334
). Nevertheless, an alternative fix in TWiki is both simple and harmless and should be released.
--
TWiki:Main/HaraldJoerg
- 2017-10-20
Investigation by the Perl Porters revealed that this is not about the Perl version. Instead, any non-threaded installation of Perl has this bug, whereas the threaded Perls are fine. I was mislead because I use Debian's vanilla Perl (which is threaded) for 5.20 and 5.24 but built the "newer" versions as unthreaded Perl. I've modified the summary accordingly.
In any case, removing the
/o
modifier is an appropriate fix (coming soon).
--
TWiki:Main/HaraldJoerg
- 2017-10-21