Skip to content

Commit 382a7c7

Browse files
committed
Utf8Decoder(allowMalformed: true)
1 parent 8e9476d commit 382a7c7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/pub_worker/lib/src/analyze.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// BSD-style license that can be found in the LICENSE file.
44

55
import 'dart:async';
6-
import 'dart:convert' show JsonUtf8Encoder, LineSplitter, utf8;
6+
import 'dart:convert' show JsonUtf8Encoder, LineSplitter, Utf8Decoder, utf8;
77
import 'dart:io'
88
show Directory, File, IOException, Platform, Process, ProcessSignal, gzip;
99
import 'dart:isolate' show Isolate;
@@ -153,11 +153,11 @@ Future<void> _analyzePackage(
153153

154154
await Future.wait<void>([
155155
pana.stderr
156-
.transform(utf8.decoder)
156+
.transform(Utf8Decoder(allowMalformed: true))
157157
.transform(LineSplitter())
158158
.forEach(log.writeln),
159159
pana.stdout
160-
.transform(utf8.decoder)
160+
.transform(Utf8Decoder(allowMalformed: true))
161161
.transform(LineSplitter())
162162
.forEach(log.writeln),
163163
pana.exitOrTimeout(_panaTimeout, () {

0 commit comments

Comments
 (0)