-
-
Notifications
You must be signed in to change notification settings - Fork 666
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
Utf.iter8 throws for 0x7F on Neko #8139
Comments
This line is the culprit: https://github.com/HaxeFoundation/neko/blob/master/libs/std/utf8.c#L362 (should be There is a similar problem in HashLink, though it does not throw: https://github.com/HaxeFoundation/hashlink/blob/master/src/std/string.c#L89 Additionally neither |
I have fixed the 0x7F in HashLink.
I'm not sure what to do with C0-C1 and F5-FF, you can submit a PR for
hashlink string.c if you want to improve things here
I will not fix Neko but you can submit a PR there as well.
…On Wed, Apr 10, 2019 at 12:11 PM Aurel ***@***.***> wrote:
This line is the culprit:
https://github.com/HaxeFoundation/neko/blob/master/libs/std/utf8.c#L362
(should be <= 0x7F)
There is a similar problem in HashLink, though it does not throw:
https://github.com/HaxeFoundation/hashlink/blob/master/src/std/string.c#L89
Additionally neither C0, C1 (overlong sequence start), nor F5 – FF
(codepoints higher than allowed in Unicode) are rejected.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#8139 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA-bwAb17Zs8Gb2-nLPHfHHBP9JSm6tWks5vfbjogaJpZM4cmjqD>
.
|
@Aurel300 can you submit a PR for Neko? |
Nevermind I fixed it directly online. |
Expected output:
127
and97
(works on Python, JS, Java, eval, C++, …)Neko v2.2.0:
The text was updated successfully, but these errors were encountered: