Skip to content
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

minecraft: Split vanilla string by bytes instead of characters #436

Merged
merged 1 commit into from
Dec 17, 2023

Conversation

Douile
Copy link
Contributor

@Douile Douile commented Dec 15, 2023

The received string length from server is expected to be a byte length whereas if we parse to string first javascript will treat our length as a character length (accounts for UTF multi-byte characters).

This should hopefully fix #434

The received string length from server is expected to be a byte length
whereas if we parse to string first javascript will treat our length as
a character length (accounts for UTF multi-byte characters).

This should hopefully fix gamedig#434
@Douile Douile marked this pull request as ready for review December 16, 2023 14:37
@CosminPerRam
Copy link
Member

Thanks for the quick fix!

@CosminPerRam CosminPerRam merged commit dcc69a3 into gamedig:master Dec 17, 2023
4 checks passed
CosminPerRam added a commit that referenced this pull request Dec 30, 2023
By Douile, backported, reference #436
@CosminPerRam CosminPerRam mentioned this pull request Dec 30, 2023
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.

bug: Unexpected token Y in JSON
2 participants