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

Fix JSON reports with long UTF8 strings #5300

Merged
merged 3 commits into from
Mar 1, 2021
Merged

Conversation

danog
Copy link
Collaborator

@danog danog commented Mar 1, 2021

When printing keyed arrays or literal strings containing more than 80 characters, the old logic may cut off a UTF8 codepoint in half, causing an error when encoding JSON reports.
Also added a call to json_last_error_msg to obtain a detailed error description.

@muglug muglug merged commit 404db2b into vimeo:master Mar 1, 2021
@muglug
Copy link
Collaborator

muglug commented Mar 1, 2021

Thanks!

This was referenced Mar 15, 2021
This was referenced Mar 17, 2021
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.

3 participants