Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: b46ff331ac7c3932062d77bb6d0eb850f8eafc70
https://github.com/Perl/perl5/commit/b46ff331ac7c3932062d77bb6d0eb850f8eafc70
Author: Richard Leach <[email protected]>
Date: 2026-10-07 (Wed, 07 Oct 2026)
Changed paths:
M pod/perldelta.pod
M regexec.c
M t/re/re_tests
Log Message:
-----------
Correctly skip when PLUS fails to match a UTF8 char
Previously, all characters with a matching first _byte_ were skipped,
instead of all matching _characters_ as intended.
This caused `"àéàj" =~ /à+j/` to fail to match in GH#24916.
The faulty code seems to date back to when the UTF-8 support was added.
(https://github.com/Perl/perl5/commit/a0ed51b)
The code path might not have always been reachable. The following changes
leading up to 5.18.0 seem to have inadvertently exposed the bug:
* 51e6836 - regcomp.c: Slightly relax restriction of SIMPLE nodes
* b40a2c1 - regex: Allow any single char to be SIMPLE
To unsubscribe from these emails, change your notification settings at
https://github.com/Perl/perl5/settings/notifications