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

[JVM] Reimplement nqp::encode for utf-16 #749

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

usev6
Copy link
Contributor

@usev6 usev6 commented Nov 26, 2021

Starting from the bug reported in #250
it turned out that the old implementation gave different results than
MoarVM for all buffer types (at least in some cases). The new code
doesn't try to take shortcuts, but just works through all code points
one by one, translates them to UTF-16 code points and puts those into
the result buffer.

I'd guess at least the encodeUTF32 method needs a similar rework.

Starting from the bug reported in Raku#250
it turned out that the old implementation gave different results than
MoarVM for all buffer types (at least in some cases). The new code
doesn't try to take shortcuts, but just works through all code points
one by one, translates them to UTF-16 code points and puts those into
the result buffer.

I'd guess at least the encodeUTF32 method needs a similar rework.
@coke coke changed the base branch from master to main April 19, 2023 13:38
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.

1 participant