forked from transmission/transmission
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: json string serializer improperly escaping characters (transmiss…
…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
- Loading branch information
Showing
4 changed files
with
74 additions
and
76 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters