Skip to content

Handle simple transcoding replacement correctly#8873

Merged
headius merged 4 commits intojruby:masterfrom
headius:encode_with_replace
Jun 20, 2025
Merged

Handle simple transcoding replacement correctly#8873
headius merged 4 commits intojruby:masterfrom
headius:encode_with_replace

Conversation

@headius
Copy link
Member

@headius headius commented Jun 20, 2025

The changes here improve the handling of different String#encode arities, specifically fixing the simple replacement issue reported in #8872 but also reducing the duplicated work along the different arity paths.

Fixes #8872.

@headius headius added this to the JRuby 10.0.1.0 milestone Jun 20, 2025
@headius headius force-pushed the encode_with_replace branch from 8245bbc to a0e3f74 Compare June 20, 2025 16:17
@headius headius merged commit c10eb88 into jruby:master Jun 20, 2025
72 checks passed
@headius headius deleted the encode_with_replace branch June 20, 2025 16:53
@headius headius mentioned this pull request Jun 20, 2025
17 tasks
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.

String#encode replace option incorrectly handles value

1 participant