Branch: refs/heads/blead Home: https://github.com/Perl/perl5 Commit: 68c0abdb72fb1ed3b92c662388566e48a5a83dc1 https://github.com/Perl/perl5/commit/68c0abdb72fb1ed3b92c662388566e48a5a83dc1 Author: Karl Williamson <k...@cpan.org> Date: 2025-08-26 (Tue, 26 Aug 2025)
Changed paths: M pp.c Log Message: ----------- pp_reverse: Use isUTF8_CHAR() for validity check The code was converting a UTF-8 single character string to its code point, just to find out if the string was wellformed or not. It had no need of the returned code point. It is more efficient to just use the function that checks for validity without trying to get the code point. The validity checking function returns 0 on failure; else how many bytes were in the string. Use this value instead of calling UTF8SKIP to re-derive it. And the former function utf8_to_uvchr_buf() is discouraged from use anyway. This commit removes the final core use of the discouraged _uvchr functions, To unsubscribe from these emails, change your notification settings at https://github.com/Perl/perl5/settings/notifications