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

doop.c Use new utf8_to_uv_or_die() #22931

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Conversation

khwilliamson
Copy link
Contributor

This replaces the older forms. For two of the instances, this gives equivalent functionality, where they croaked if an operand to tr/// was malformed. For the other instances, it didn't croak, but now does. This makes the behavior consistent for tr///, as all the affected instances are supposed to be equivalent. For performance reasons, one or another of the functions would be called, and depending on which one the same input would croak or not.

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

This replaces the older forms.  For two of the instances, this gives
equivalent functionality, where they croaked if an operand to tr/// was
malformed.  For the other instances, it didn't croak, but now does.
This makes the behavior consistent for tr///, as all the affected
instances are supposed to be equivalent.  For performance reasons, one
or another of the functions would be called, and depending on which one
the same input would croak or not.
@khwilliamson khwilliamson merged commit 48972dd into Perl:blead Jan 23, 2025
34 checks passed
@khwilliamson khwilliamson deleted the doop_utf8_to branch January 24, 2025 13:34
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.

2 participants