Skip to content

Enumerator#inspect: Use String concatenation not just bytelist appends#7531

Merged
enebo merged 1 commit intojruby:masterfrom
enebo:enumerator_inspect
Dec 16, 2022
Merged

Enumerator#inspect: Use String concatenation not just bytelist appends#7531
enebo merged 1 commit intojruby:masterfrom
enebo:enumerator_inspect

Conversation

@enebo
Copy link
Member

@enebo enebo commented Dec 16, 2022

This is really weird that it is ASCII-8BIT by default but if you inspect something which inside of the enumerator is UTF-8 then the result string should also be UTF-8.

This fixes #7529

This is really weird that it is ASCII-8BIT by default but if you inspect
something which inside of the enumerator is UTF-8 then the result string
should also be UTF-8.
@enebo enebo added this to the JRuby 9.4.1.0 milestone Dec 16, 2022
@enebo enebo merged commit 1d97237 into jruby:master Dec 16, 2022
@enebo enebo deleted the enumerator_inspect branch December 16, 2022 21:35
cboos added a commit to cboos/jruby that referenced this pull request Dec 17, 2022
"Enumerator#inspect produces an ASCII-8BIT encoded String"

This was fixed by PR jruby#7531

"Enumerator#inspect: Use String concatenation not just bytelist appends"
@cboos cboos mentioned this pull request Dec 17, 2022
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.

Enumerator#inspect produces an ASCII-8BIT encoded String

1 participant