-
Notifications
You must be signed in to change notification settings - Fork 77
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
Is StandardTextWriter broken for some Unicode characters? #870
Comments
why is it wrong? it's just not printing it as |
The context: The |
But isn't it just an encoding error? In the string itself there is no difference. Could it be that the code in the parser generator should also support |
It could also be printed as |
The parser generator already adds one extra rule per non-terminal (using |
could you give an example? I have a problem understanding how it doesn't parse?
|
Is all internal processing inside the parser generator and not so easy to demonstrate on the command line. It boils down to the textual representation of a hole that is computed internally: Interpreted: So now I believe it is rather on the text generation side that something goes wrong: these null characters should not be escaped! |
ah yes, double escaping is always a scary thing. Shall we close the issue? Btw, if you have |
Management summary: the compiler did not properly handle some escapes in string templates. As a result double escaping did occur as in the above example. That has been fixed. |
Is it possible that
StandardTextWriter
does not handle\u0000
correctly or am I -- being rather Unicode ignorant -- overlooking something? Here is an example:prints:
The text was updated successfully, but these errors were encountered: