[Perl/perl5] 9af310: Add some tests of non-ASCII UTF-8 handling of class.c
Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 9af3108046af394b01d80a67e3ecca2e41904be4 https://github.com/Perl/perl5/commit/9af3108046af394b01d80a67e3ecca2e41904be4 Author: Paul "LeoNerd" Evans Date: 2024-02-12 (Mon, 12 Feb 2024) Changed paths: M MANIFEST A t/class/utf8.t Log Message: --- Add some tests of non-ASCII UTF-8 handling of class.c
[Perl/perl5] cfc8e8: locale_threads.t: Better handle weird locales
Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: cfc8e8a4ca7f7e04fee2c671bd8eec76b07bba1e https://github.com/Perl/perl5/commit/cfc8e8a4ca7f7e04fee2c671bd8eec76b07bba1e Author: Karl Williamson Date: 2024-02-12 (Mon, 12 Feb 2024) Changed paths: M lib/locale_threads.t Log Message: --- locale_threads.t: Better handle weird locales The previous code was generating bunches of uninitialized variable warnings, due to 1) not checking for definedness early; 2) the loop termination needs to be reevaluated each time because there is a potential splice, shortening the array. This only happens, I believe, on MingW not using UCRT.
[Perl/perl5] 941444: perlapi: Add detail to sv_setpv_bufsize()
Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 94144432cd6b311eddc4502f9ef0a0ab85184039 https://github.com/Perl/perl5/commit/94144432cd6b311eddc4502f9ef0a0ab85184039 Author: Karl Williamson Date: 2024-02-12 (Mon, 12 Feb 2024) Changed paths: M sv.c Log Message: --- perlapi: Add detail to sv_setpv_bufsize()
[Perl/perl5] cd546b: avoid ext/XS-APItest/t/clone-with-stack.t crash
Branch: refs/heads/davem/clone Home: https://github.com/Perl/perl5 Commit: cd546bd54a2be65514cec6198352fafda0cb0787 https://github.com/Perl/perl5/commit/cd546bd54a2be65514cec6198352fafda0cb0787 Author: David Mitchell Date: 2024-02-12 (Mon, 12 Feb 2024) Changed paths: M ext/XS-APItest/APItest.xs Log Message: --- avoid ext/XS-APItest/t/clone-with-stack.t crash a fresh_perl() TODO test in this file does something like use XS::APItest; BEGIN { clone_with_stack(); } print "ok\n"; As a standalone program, this code gives errors under valgrind, and in ticket GH #21969 was causing "perl.exe has stopped working" on Windows 8. The clone_with_stack() XS function is fairly dodgy - it clones the whole interpreter including stacks (i.e. what fork() emulation on windows does), but then continues the RUNOPS loop to completion itself, using the cloned interpreter, rather than relying on the caller to finish the ops loop. This doesn't work very well under BEGIN (hence why it's a TODO test), but specifically, PL_curcop can be left pointing at an op which gets freed , but then is later accessed anyway. This commit resets PL_curcop to &PL_compiling to avoid crashes.