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

Support null encoding for rb_enc_interned_str_cstr #3480

Merged
merged 1 commit into from
Mar 19, 2024

Conversation

thomasmarshall
Copy link
Contributor

This commit adds support for a null pointer to be passed as the encoding argument to rb_enc_interned_str_cstr.

When we implemented this function originally, we noticed that the CRuby behavior did not match the header documentation, so we opted not to support it. However, this has now been fixed in CRuby, so we can fix it here as well.

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Mar 6, 2024
@thomasmarshall thomasmarshall force-pushed the rb-enc-str-new-cstr-null-enc branch from cf60136 to d16baa4 Compare March 13, 2024 18:00
This commit adds support for a null pointer to be passed as the encoding
argument to rb_enc_interned_str_cstr.

When we implemented this function originally, we noticed that the CRuby
behavior did not match the header documentation, so we opted not to
support it. However, this has now been fixed in CRuby [1], so we can fix
it here as well.

[1]: ruby/ruby#10169
@thomasmarshall thomasmarshall force-pushed the rb-enc-str-new-cstr-null-enc branch from d16baa4 to 2dea520 Compare March 13, 2024 18:21
@thomasmarshall thomasmarshall marked this pull request as ready for review March 13, 2024 18:51
@andrykonchin andrykonchin added the in-ci The PR is being tested in CI. Do not push new commits. label Mar 19, 2024
@graalvmbot graalvmbot merged commit 1d1556d into oracle:master Mar 19, 2024
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in-ci The PR is being tested in CI. Do not push new commits. OCA Verified All contributors have signed the Oracle Contributor Agreement. shopify
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants