oracle / truffleruby

A high performance implementation of the Ruby programming language, built on GraalVM.
https://www.graalvm.org/ruby/
Other
2.99k stars 180 forks source link

Support null encoding for rb_enc_interned_str_cstr #3480

Closed thomasmarshall closed 3 months ago

thomasmarshall commented 4 months ago

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.