You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ErrorHandlingFile.readAsStringSync({Encoding encoding = utf8}) ignores its encoding parameter and calls delegate.readAsStringSync(), forcing UTF-8 decoding even when callers specify another codec (unlike readAsString, readAsLines, and readAsLinesSync, which forward encoding).
Because flutter_tools wraps LocalFileSystem in ErrorHandlingFileSystem, callers such as ScreenshotCommand.ensureOutputIsNotJsonRpcError (which passes encoding: const AsciiCodec(allowInvalid: true) when checking small screenshot files for JSON-RPC error payloads) crash with FileSystemException: Failed to decode data using encoding 'utf-8':
Activity
[flutter_tools] Forward encoding in ErrorHandlingFile.readAsStringSync (