This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
perl #122747: localize PL_curpm to null in _core_swash_init
authorYves Orton <demerphq@gmail.com>
Thu, 11 Sep 2014 19:55:08 +0000 (21:55 +0200)
committerYves Orton <demerphq@gmail.com>
Thu, 11 Sep 2014 20:45:31 +0000 (22:45 +0200)
commit2c1f00b9036a7987c714a407662651ef7da99495
tree9ca36e7b309494d83945d5ed7d70fa3a342e5e75
parent2febb45ac8fe9a31602934af3d9c14587543a3d9
perl #122747: localize PL_curpm to null in _core_swash_init

Set PL_curpm to null before we do any swash intialization
in _core_swash_init(). This "hides" the current regop from the
swash code, with the intent of prevent weird reentrancy bugs
when the swashes are initialized.

Long term you could argue that we should just not use the regex
engine to initialize a swash, and then this would be unnecessary.

Thanks to FC for the suggestion!
utf8.c