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 string serializer improperly escaping characters (#6005) #6133

Merged
merged 1 commit into from Oct 20, 2023

Conversation

tearfur
Copy link
Member

@tearfur tearfur commented Oct 20, 2023

Manual cherrypick to 4.0.x.

…ion#6005)

* feat: escape json string according to RFC8259

* fix: do not append newline when json serde is in compact mode

* fix: json tests

1. Use the same locale settings as the apps
2. Added additional test case for a string that are known to be prone to locale issues
3. Removed test for escaping non-BMP characters to UTF-16 escape sequences

* chore: add more test cases to `JSONTest.testUtf8`

* chore: order cases in the same order as RFC8259

(cherry picked from commit 0259edb)
@ckerr ckerr added this to the 4.0.x milestone Oct 20, 2023
@ckerr
Copy link
Member

ckerr commented Oct 20, 2023

Notes: Fixed a bug where Transmission is incorrectly escaping JSON strings in some locales.

(Copied from #6005)

@ckerr ckerr merged commit cf6691a into transmission:4.0.x Oct 20, 2023
1 check passed
@tearfur tearfur deleted the json-fix-cherrypick branch October 20, 2023 16:22
@tearfur tearfur added the notes:highlight Should be listed prominently in release notes label Nov 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notes:highlight Should be listed prominently in release notes scope:core type:fix A bug fix
Development

Successfully merging this pull request may close these issues.

None yet

2 participants