Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 6e885303b5134586548df93b196a82fdc1e334fc https://github.com/Perl/perl5/commit/6e885303b5134586548df93b196a82fdc1e334fc Author: Karl Williamson <k...@cpan.org> Date: 2024-12-15 (Sun, 15 Dec 2024)
Changed paths: M utf8.c Log Message: ----------- perlapi: Fixups of pod for utf8_to_uv family Commit: 4edac50c278ae195e65714928c0c21e8c19b0a48 https://github.com/Perl/perl5/commit/4edac50c278ae195e65714928c0c21e8c19b0a48 Author: Karl Williamson <k...@cpan.org> Date: 2024-12-15 (Sun, 15 Dec 2024) Changed paths: M utf8.c Log Message: ----------- utf8_to_uv_msgs: Avoid extra deref pointer writes This function is passed an address of where to write some values. Instead of updating the derefernced pointer each time, do it once after all the information is accumulated. This allows for the values to be updated without updating the pointed to variable. Commit: c60ca9663cba62e3d869be963c077e847eda9d77 https://github.com/Perl/perl5/commit/c60ca9663cba62e3d869be963c077e847eda9d77 Author: Karl Williamson <k...@cpan.org> Date: 2024-12-15 (Sun, 15 Dec 2024) Changed paths: M embed.fnc M inline.h M proto.h M utf8.c M utf8.h Log Message: ----------- Add two new flags to utf8_to_uv_msgs() These new flags subsume the functionality of force_out_malformed_utf8_message(). The guts of that function are moved to this one. This commit resulted from my observation that a bunch of code that called some form of utf8_to_uv() would test the success of that, and if it failed immediately call force_out_malformed_utf8_message(). It's better to do a common paradigm in just one place, and this commit paves the way for that. Commit: 15d814747ae9db42ba8d10fc7542e93a36e117d1 https://github.com/Perl/perl5/commit/15d814747ae9db42ba8d10fc7542e93a36e117d1 Author: Karl Williamson <k...@cpan.org> Date: 2024-12-15 (Sun, 15 Dec 2024) Changed paths: M embed.fnc M embed.h M inline.h M pod/perldelta.pod M proto.h M utf8.c Log Message: ----------- Add utf8_to_uv_or_die() This new function dies if the UTF-8 input to it is malformed. There are quite a few places in the core where we expect the input to be wellformed, and just assume that it is. This function is a drop-in replacement for those, and we won't blindly continue if the assumption is wrong. There are also a bunch of places that don't make that assumption, but check it and die immediately if malformed. This function replaces those too, along with the code needed to test the return and die. Compare: https://github.com/Perl/perl5/compare/df4d5e8b45ef...15d814747ae9 To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications