Branch: refs/heads/yves/escape_reg_mesg_test_names
Home: https://github.com/Perl/perl5
Commit: 48f34ca4068b280e8ef1679929a39897210fe4c7
https://github.com/Perl/perl5/commit/48f34ca4068b280e8ef1679929a39897210fe4c7
Author: Yves Orton <[email protected]>
Date: 2024-02-17 (Sat, 17 Feb 2024)
Changed paths:
M t/re/reg_mesg.t
Log Message:
-----------
t/re/reg_mesg.t - escape non-visible codepoints in test names
In GH #21993 James Keenan pointed out that this test scrambles the
terminal by outputting raw utf8, possibly malformed as part of the
test names. This makes it hard to understand what is going on with
the test. This patch fixes the test names so that the code snippets
we output are escaped. We use a custom sub to do the escaping so that
we do not use the regex engine at all to do the escaping.
See https://github.com/Perl/perl5/pull/21993#issuecomment-1945981506
for details of the problems James observed.
With this patch the output should not break any terminals.
To unsubscribe from these emails, change your notification settings at
https://github.com/Perl/perl5/settings/notifications