-
Notifications
You must be signed in to change notification settings - Fork 35
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
"@{5E}" and "@{7E}" escapes are wrong in Z-code #249
Comments
In an attempt to close some old issues... Suggestion is to add a warning that points to the syntax required for printing caret and tilde with @@-syntax. This won't break behavior if some game, against all odds, depend on this inconsistency.
|
The |
Because it already works for Glulx, maybe only warn for Z-code? |
How about we fix the bug instead. |
Fine by me, but you raised concerns about backward compability above. |
You're supposed to be able to escape string characters in two ways:
"@@DEC"
and"@{HEX}"
. The latter is newer and supports any Unicode value.However, the hex form doesn't come out right for a couple of characters:
That is,
"@{5E}"
is interpreted as"^"
which is then interpreted as a newline."@{7E}"
similarly gets double-interpreted as a quote character.(In Glulx both lines print the same thing, as expected.)
This bug goes back to 6.31 (at least) so it might not be desirable to fix it. Some old Z-code games might depend on this behavior, inconsistent as it is. But it's worth noting.
The text was updated successfully, but these errors were encountered: