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

\u escapes aren't compatible with Lua 5.3's \u escapes #72

Closed
SoniEx2 opened this issue Aug 29, 2015 · 3 comments
Closed

\u escapes aren't compatible with Lua 5.3's \u escapes #72

SoniEx2 opened this issue Aug 29, 2015 · 3 comments
Labels

Comments

@SoniEx2
Copy link

SoniEx2 commented Aug 29, 2015

"\u{d800}" works under Lua 5.3 but doesn't work under LuaJIT.

@MikePall
Copy link
Member

Surrogates are forbidden in UTF-8. Lua 5.3 fails to check for that, LuaJIT does.

@SoniEx2
Copy link
Author

SoniEx2 commented Aug 30, 2015

Reading material:

https://en.wikipedia.org/wiki/UTF-8#Derivatives

https://en.wikipedia.org/wiki/UTF-8#Invalid_code_points

The new thread on the Lua mailing list. We'll see where that goes...

@SoniEx2
Copy link
Author

SoniEx2 commented Aug 30, 2015

Also the Lua 5.3 reference manual only says it checks the range.

akopytov pushed a commit to akopytov/LuaJIT that referenced this issue Oct 15, 2016
Fix ORR emitter in asm_stack_restore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants