diff --git a/dev/bots/test.dart b/dev/bots/test.dart index 14bf481bec..3dd630ac0b 100644 --- a/dev/bots/test.dart +++ b/dev/bots/test.dart @@ -75,11 +75,12 @@ Future _verifyInternationalizations() async { final String localizationsFile = path.join('packages', 'flutter_localizations', 'lib', 'src', 'l10n', 'localizations.dart'); - final EvalResult sourceContents = await _evalCommand( - 'cat', - [localizationsFile], - workingDirectory: flutterRoot, - ); + final String executable = Platform.isWindows ? 'powershell' : 'cat'; + final List args = Platform.isWindows ? + ['\$PSDefaultParameterValues["*:Encoding"]="utf8";(gc $localizationsFile) -join "`n"']: + [localizationsFile]; + + final EvalResult sourceContents = await _evalCommand(executable, args, workingDirectory: flutterRoot); if (genResult.stdout.trim() != sourceContents.stdout.trim()) { stderr