Skip to content

fix(ide): a log with ANSI colours opens as text, not as binary - #854

Merged
leookun merged 1 commit into
mainfrom
fix/ide-ansi-log-not-binary
Nov 9, 2026
Merged

leookun merged 1 commit into
mainfrom
fix/ide-ansi-log-not-binary

Conversation

@leookun

@leookun leookun commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

A UTF-8 log with ANSI colour codes (ESC bytes) was refused as binary, since any C0 control character counted as binary. Now only a NUL byte or invalid UTF-8 does, as in VS Code.

Test: flutter test test/remote/remote_server_test.dart test/ide/workbench/placeholder_test.dart passes, with a new case for a coloured log.

Only a NUL byte or what is not UTF-8 makes a file binary, as in VS Code;
other control characters, such as ESC in colour codes, are text.
@leookun
leookun merged commit 3bdfd1d into main Nov 9, 2026
3 checks passed
@leookun
leookun deleted the fix/ide-ansi-log-not-binary branch November 9, 2026 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants