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 the surrogate utf8 feature when custom characterEscapes is used #1399

Merged

Conversation

stackunderflow111
Copy link
Contributor

Issue: #1398

Fixed by applying what I have described in the issue: just port the changes we made in #1335 and #1360 to the two _writeCustomStringSegment2() methods.

@@ -20,6 +20,10 @@ a pure JSON library.
parsing later numbers
(fix contributed by @pjfanning)

#1398: Fix issue that feature COMBINE_UNICODE_SURROGATES_IN_UTF8 doesn't work
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for updating release notes too! :)

Copy link
Member

@cowtowncoder cowtowncoder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

@cowtowncoder
Copy link
Member

@stackunderflow111 First of all, big thank you for providing this pr. I'm happy to merge it, 2.18 branch makes sense as target.

One practical thing we need to before merging: if you haven't yet sent CLA (which only needs to be done once before merging the first contribution).

CLA is here:

https://github.com/FasterXML/jackson/blob/master/contributor-agreement.pdf

and the usual way is to print, fill & sign, scan/photo, email to cla at fasterxml dot com.
Once we get it, I can merge the pr.

@cowtowncoder cowtowncoder added the cla-received PR already covered by CLA (optional label) label Feb 5, 2025
@cowtowncoder cowtowncoder merged commit 671f8ed into FasterXML:2.18 Feb 5, 2025
9 checks passed
@cowtowncoder cowtowncoder added this to the 2.18.3 milestone Feb 5, 2025
@stackunderflow111 stackunderflow111 deleted the surrogates-utf8-escape-chars branch February 6, 2025 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-received PR already covered by CLA (optional label)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants