File tree 1 file changed +14
-2
lines changed 1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -255,8 +255,8 @@ abstract class CompilerTest extends DottyTest {
255
255
processFileDir(sourceFile, { sf =>
256
256
if (extensionsToCopy.contains(sf.extension)) {
257
257
dest.parent.jfile.mkdirs
258
- println(" copying " + sf.toString + " with default codec " + sf.creationCodec)
259
- val contents = try { sf.slurp } catch {
258
+ println(" copying " + sf.toString + " with UTF8 codec " + sf.creationCodec)
259
+ val contents = try { sf.slurp(scala.io. Codec . UTF8 ) } catch {
260
260
case e : Throwable => println(" ==================\n =======BOOM=======\n ==================\n failed slurping file " + sf.toString); " "
261
261
}
262
262
dest.toFile.writeAll(" /* ==========================================\n " ,
@@ -265,6 +265,18 @@ abstract class CompilerTest extends DottyTest {
265
265
" * ==========================================\n " ,
266
266
" * Original: " + sf.toString + " */\n\n " ,
267
267
contents)
268
+
269
+ /* ==================
270
+ =======BOOM=======
271
+ ==================
272
+ failed slurping file ./src/dotty/tools/dotc/core/tasty/TastyFormat.scala
273
+ failed slurping file ./src/dotty/tools/dotc/core/tasty/TastyFormat.scala
274
+ failed slurping file ./src/dotty/tools/dotc/transform/PatternMatcher.scala
275
+ failed slurping file ./src/dotty/tools/dotc/transform/PatternMatcher.scala
276
+
277
+
278
+ */
279
+
268
280
} else {
269
281
log(s " WARNING: ignoring $sf" )
270
282
}
You can’t perform that action at this time.
0 commit comments