Skip to content

Conversation

@byroot
Copy link
Member

@byroot byroot commented Oct 8, 2024

Fix: #344

This matches the ext behavior.

@byroot byroot merged commit fa43c6f into ruby:master Oct 8, 2024
73 of 75 checks passed
@byroot byroot deleted the pure-string-to-json branch October 8, 2024 01:51
@nirvdrum
Copy link

nirvdrum commented Oct 21, 2024

Thank you. Now that the gem is seeing active development I went to fix #344 and was pleasantly surprised to see you already addressed it.

state = State.from_state(state)
if encoding == ::Encoding::UTF_8
unless valid_encoding?
raise GeneratorError, "source sequence is illegal/malformed utf-8"
Copy link
Member

Choose a reason for hiding this comment

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

We also need it in fast_serialize_string: #633

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.

String#to_json behavior different for pure vs native ext

3 participants