-
Notifications
You must be signed in to change notification settings - Fork 2
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
the output is not escaped on error #572
Comments
@deemp please, help |
@yegor256, run |
@deemp yes, we know the workaround, but please make the output escaped :) |
|
@deemp yes, it works with the |
@yegor256, can you suggest how to distinguish when to print Unicode and when to escape? I thought about:
|
@deemp just escape always, when you print this error message. Why not to escape? It's an error message, it won't be parsed by any software, it will always be read by humans. Replace all |
@yegor256, it's inconvenient to read numbers when you can read Unicode characters. If the locale is set correctly, users may prefer to see Unicode. |
@deemp I'm the primary user of this app :) I'm telling you, as a user, that error messages must be as non-ambiguous as possible. Unicode is more ambiguous than ASCII. |
@yegor256, OK, I'll keep that in mind :) Let's escape. |
@yegor256, here are representations of errors.
Do you really prefer the option with escaping? |
@deemp can you do both? show the original one and then print the escaped one? |
@yegor256, which one do you mean? |
@deemp how many do you have? :) print them both |
@yegor256, see #572 (comment) |
@deemp please, print both outputs in case of error: 1) not escaped, and 2) escaped |
Platform: Linux Input program:
|
@deemp the first option is not "escaping" but "removing" :) please, use option two and option three together |
I see this in the log:
Here, I don't understand whether the problem is with the encoding or the input was indeed formatted as
?0
instead ofα0
. I suggest you to "escape" non-ASCII symbols in the output. Instead of printing UTF-8 as is, convert them to something like\u045e
.Maybe you can say
on input (non-ASCII symbols escaped)
instead of juston input
.The text was updated successfully, but these errors were encountered: