-
Notifications
You must be signed in to change notification settings - Fork 48
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
Issue 18458 - invalid utf on run.dlang.io causes server error #672
Comments
The server reply is: {
"statusMessage":"Invalid UTF-8 sequence (at index 1)",
"statusDebugMessage":"Invalid UTF sequence: 80x - Invalid UTF-8 sequence (at index 1)"
} The frontend should definitely display these error messages. I don't have time today to dig into this, but Vibe.d just serialized an Exception |
Slight alteration with bug description body: It's anything (including) and over \x80. |
FYI: #673, but I don't like the solution there. The problem can be reproduced locally easily: void main(string[] args)
{
import std.stdio;
// but not extended ASCII
string line = "\xB5"; // [181]
line.writeln; // works
import std.range.primitives : front;
line.front.writeln; // fails
} |
Moved from https://issues.dlang.org/show_bug.cgi?id=18458
Actually anything (including) '\x80' will cause a server error.
import std.stdio : writeln;
void main()
{
writeln('\x80');
}
The text was updated successfully, but these errors were encountered: