This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Partial patch for [perl #133970] Roman::Unicode broken
authorKarl Williamson <khw@cpan.org>
Thu, 4 Apr 2019 19:44:22 +0000 (13:44 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 4 Apr 2019 19:57:09 +0000 (13:57 -0600)
Wrap a call out to Perl code with PUSH/POP stacks.
This gets this module working again, and maybe head off some other smoke
failures, but there are other things needed, including tests, that I'm
working on.

regcomp.c

index 936de7f..03ba84d 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -23160,6 +23160,7 @@ Perl_parse_uniprop_string(pTHX_
              * for this property in the hash.  So we have the go ahead to
              * expand the definition ourselves. */
 
+            PUSHSTACKi(PERLSI_MAGIC);
             ENTER;
 
             /* Create a temporary placeholder in the hash to detect recursion
@@ -23247,6 +23248,7 @@ Perl_parse_uniprop_string(pTHX_
 
             FREETMPS;
             LEAVE;
+            POPSTACK;
 
             if (prop_definition) {