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

Item7827: With non-threaded Perl, the $SPLIT function of SpreadSheetPlugin fails after splitting on '$empty'

Item Form Data

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

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

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

ItemTemplate
Summary With non-threaded Perl, the $SPLIT function of SpreadSheetPlugin fails after splitting on '$empty'
ReportedBy TWiki:Main.HaraldJoerg
Codebase ~twiki4
SVN Range TWiki-6.0.2-trunk, Thu, 17 Aug 2017, build 30373
AppliesTo Extension
Component SpreadSheetPlugin
Priority Normal
CurrentState Closed
WaitingFor TWiki:Main.HaraldJoerg
Checkins TWikirev:30401
TargetRelease minor
ReleasedIn 6.1.0
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-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