Skip to content

chop: Clear UTF-8 flag appropriately - #25037

Open
khwilliamson wants to merge 2 commits into
Perl:bleadfrom
khwilliamson:chop
Open

khwilliamson wants to merge 2 commits into
Perl:bleadfrom
khwilliamson:chop

Conversation

@khwilliamson

Copy link
Copy Markdown
Contributor

Fixes #25035

chop() returns the chopped character, unlike chomp(). If TARG is UTF-8
from a previous operation, and this chop isn't, the flag wasn't cleared.

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

Fixes Perl#25035

chop() returns the chopped character, unlike chomp().  If TARG is UTF-8
from a previous operation, and this chop isn't, the flag wasn't cleared.
@jkeenan

jkeenan commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

From a TDD point-of-view, this p.r. DWIMS. Should by reviewed by someone more familiar with pp.c.

@leonerd leonerd left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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.

chop doesnt clear its UTF-8 flag on its return value

3 participants