Skip to content

fix buffer.transcode if both encodings are same #2602

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

Merged
merged 1 commit into from
Aug 26, 2024

Conversation

anonrig
Copy link
Member

@anonrig anonrig commented Aug 24, 2024

This was an invalid optimization. If fromEncoding and toEncoding is same, and if the encoding is invalid (such as invalid utf8), the output should have included a result that replaces invalid characters with replacement characters.

@anonrig anonrig requested review from mikea, jasnell, npaun and fhanau August 24, 2024 23:05
@anonrig anonrig requested review from a team as code owners August 24, 2024 23:05
@anonrig anonrig force-pushed the yagiz/buffer-transcode-fix branch from 9cb7a6f to 18045db Compare August 24, 2024 23:10
@jasnell jasnell merged commit 91224c9 into main Aug 26, 2024
9 of 10 checks passed
@jasnell jasnell deleted the yagiz/buffer-transcode-fix branch August 26, 2024 14:21
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