Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pv_uni_display: Revert use of utf8_to_uv_or_die #23093

Open
wants to merge 1 commit into
base: blead
Choose a base branch
from

Conversation

khwilliamson
Copy link
Contributor

@khwilliamson khwilliamson commented Mar 9, 2025

This fixes #23089

Croaking when someone is trying to output a malformed UTF-8 sequence turns out to be a bad idea. That should have been obvious to me.

But instead of going back to the problematic utf8_to_uvchr_buf(), thiscommit uses the non-croaking utf8_to_uv().

Croaking should not be done when at the user interface. It makes sense, for example, when things should have already been validated and there is no good option to proceed.

  • This set of changes does not require a perldelta entry.

This fixes Perl#23089

Croaking when someone is trying to output a malformed UTF-8 sequence
turns out to be a bad idea.  That should have been obvious to me.

But instead of going back to the problematic utf8_to_uvchr_buf(), this
commit uses the non-croaking utf8_to_uv().

Croaking should not be done when at the user interface.  It makes sense,
for example, when things should have already been validated and there is
no good option to proceed.
@khwilliamson khwilliamson changed the title pv_uni_display: Revert use of utf8_to_ov_or_die pv_uni_display: Revert use of utf8_to_or_or_die Mar 9, 2025
@khwilliamson khwilliamson changed the title pv_uni_display: Revert use of utf8_to_or_or_die pv_uni_display: Revert use of utf8_to_uv_or_or_die Mar 9, 2025
@khwilliamson khwilliamson changed the title pv_uni_display: Revert use of utf8_to_uv_or_or_die pv_uni_display: Revert use of utf8_to_uv_or_die Mar 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BBC: Blead Breaks Cpanel::JSON::XS
1 participant