You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which should print 6 (length of the string) then \x80\x00\x20\x7A\x3F\x3E (the escaped form of the string), but instead prints 7\xC2\x80\x00\x20\x7A\x3F\x3E, because the string is being un-escaped incorrectly and is adding a non-breaking space to the beginning of the string.
This can be also be seen with the line let someString = "\x80\x00\x20\x7A\x3F\x3E" being converted to someString = "�\0 z?>"
The text was updated successfully, but these errors were encountered:
Issue
Strings containing escaped characters get incorrectly un-escaped when converted into lua
Reproduction
Link to the program on the TSTL Playground
The program is:
Which should print
6
(length of the string) then\x80\x00\x20\x7A\x3F\x3E
(the escaped form of the string), but instead prints7
\xC2\x80\x00\x20\x7A\x3F\x3E
, because the string is being un-escaped incorrectly and is adding a non-breaking space to the beginning of the string.This can be also be seen with the line
let someString = "\x80\x00\x20\x7A\x3F\x3E"
being converted tosomeString = "�\0 z?>"
The text was updated successfully, but these errors were encountered: