-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
utf16 and related functions don't handle characters >= 0x100000 correctly #10919
Comments
Thanks, @ScottPJones. Note that you can quote Julia code in issues by writing:
|
Ah, ok! Thanks for the tip! I’m just going through all the info now on dealing with git, with my brand new account… (scottpjones, [email protected] mailto:[email protected]) One month after hearing about Julia, my first contribution ;-) Thanks again!
|
And so it begins 😄. Welcome to the team! I hope you have as much fun as I've had. |
No worries – it's a lot of stuff all at once, so don't sweat it. Let us know if you've got questions or issues, and if you can't get the pull request to go through, we can help. |
…aracters > 0x100000
The code incorrectly masks with 0x3ff when building the high surrogate, and doesn't check to make sure the character is a valid Unicode code point (UTF-16, unlike UTF-8, can only encode the 1 million
non-BMP characters, not any arbitrary 32-bit number)
I have a fix, but I need to learn how to submit it correctly.
[edit: formatting – @StefanKarpinski]
The text was updated successfully, but these errors were encountered: