Skip to content

JsonPrinter remove trailing garbage after non-printable char #950

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged

Conversation

ywhrh
Copy link
Contributor

@ywhrh ywhrh commented Jul 17, 2023

SBE toString() won't print trailing garbage after non-printable char; JsonPrinter should have the same functionality...

see CarEncoder toString:

for (int i = 0; i < vehicleCodeLength() && this.vehicleCode(i) > 0; i++)
{
    builder.append((char)this.vehicleCode(i));
}

@mjpt777 mjpt777 merged commit 4454c85 into aeron-io:master Jul 19, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants