Skip to content

Conversation

@headius
Copy link
Member

@headius headius commented May 23, 2024

The old cat method used here does not consider encodings or code ranges, instead just slamming the given bytes directly into the existing buffer. This causes problem when those bytes or the encoding they came from does not match the existing encoding or code range, leading to issues like #247.

The fix here uses a code range-aware method for doing the bytes concatenation, and resolved the related bug.

Fixes #247

The old `cat` method used here does not consider encodings or
code ranges, instead just slamming the given bytes directly into
the existing buffer. This causes problem when those bytes or the
encoding they came from does not match the existing encoding or
code range, leading to issues like jruby#247.

The fix here uses a code range-aware method for doing the bytes
concatenation, and resolved the related bug.

Fixes jruby#247
@headius headius force-pushed the encoding_aware_cat branch from 61ca365 to 3319527 Compare May 23, 2024 03:36
@headius headius merged commit e5f3041 into jruby:master May 23, 2024
@headius headius added this to the 1.2.0 milestone May 23, 2024
@headius headius mentioned this pull request Jun 6, 2024
@headius headius deleted the encoding_aware_cat branch June 17, 2024 17:05
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.

Broken multipart data

1 participant