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

Remove utf32 from encodings lists for MoarVM #4232

Merged
merged 1 commit into from Mar 3, 2021

Conversation

codesections
Copy link
Collaborator

Rakudo currently lists utf32 as one of the encoding/decoding operations it supports. However, this support has never been added to the MoarVM backend and attempting to use it throws a somewhat confusing exception.

Accordingly, this commit removes utf32 from relevant lists in Rakudo::Internals and Encoding::Registry when Rakudo is compiled for MoarVM (the JVM backend supports utf32). This causes spectest failures because Roast was checking whether an encoding was listed in the Encoding::Registry without testing whether the encoding could actually be used.

I have prepared a companion PR that marks these tests as todo for rakudo.moar and that adds substests to ensure that registered encodings can actually be used.

Related issues: #3293 and MoarVM/MoarVM#1348

Rakudo currently lists utf32 as one of the encoding/decoding
operations it supports.  However, this support has never been added to
the MoarVM backend and attempting to use it throws a somewhat
confusing exception.

Accordingly, this commit removes utf32 from relevant lists in
Rakudo::Internals and Encoding::Registry when Rakudo is compiled for
MoarVM (the JVM backend supports utf32).  This causes spectest
failures because Roast was checking whether an encoding was listed in
the Encoding::Registry without testing whether the encoding could
actually be used.

I have prepared a companion PR that marks these tests as todo for
rakudo.moar and that adds substests to ensure that registered
encodings can actually be used.
@lizmat lizmat merged commit 1861284 into rakudo:master Mar 3, 2021
@lizmat
Copy link
Contributor

lizmat commented Mar 3, 2021

Thanks!

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.

None yet

2 participants