Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix passing empty strings and bufs to Perl 5.
A 0 len parameter passed to newSVpv makes perl5 use strlen() to determine len. We don't need this magic anymore, since we determine the length of the buffer in Perl 6 code already for binary safety. Works around an apparent bug in Rakudo. The pointer to the supposedly empty string points to random garbage now.
- Loading branch information
Showing
2 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters