Branch: refs/heads/yves/escape_reg_mesg_test_names Home: https://github.com/Perl/perl5 Commit: 0e857b361cb6a86cca2e6913677c3e7b5af4b80e https://github.com/Perl/perl5/commit/0e857b361cb6a86cca2e6913677c3e7b5af4b80e Author: Yves Orton <demer...@gmail.com> 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