This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Test that UTF-8 in the look-ahead of (?(?=...)...) restarts the sizing parse.
authorNicholas Clark <nick@ccl4.org>
Wed, 16 Jan 2013 20:58:02 +0000 (21:58 +0100)
committerNicholas Clark <nick@ccl4.org>
Tue, 19 Mar 2013 10:53:19 +0000 (11:53 +0100)
commite22f9b1c6a54c0d78a629d4d4160914b2a563855
treef7c2b47ca65209c4721435ca05852e2af9f6b68c
parentba7b73c5937452f0c133ba6521ce46776079f76b
Test that UTF-8 in the look-ahead of (?(?=...)...) restarts the sizing parse.

S_reg() recurses to itself to parse various constructions used as the
conditionals in conditional matching. Look-aheads and look-behinds can turn
out to need to be sized as UTF-8, which can cause the inner S_reg() to use
the macro REQUIRE_UTF8 is used to restart the parse. Test that this is
handled correctly.
t/re/re_tests