diff --git a/Scripts/ProcessCoverage.swift b/Scripts/ProcessCoverage.swift index 5ff359e..a3ff055 100755 --- a/Scripts/ProcessCoverage.swift +++ b/Scripts/ProcessCoverage.swift @@ -138,7 +138,9 @@ for d in report.data { out += "
"
var segments = f.segments
for (index, line) in try
- (String(contentsOfFile: f.filename).split(omittingEmptySubsequences: false) { $0.isNewline })
+ (String(contentsOfFile: f.filename, encoding: .utf8).split(omittingEmptySubsequences: false) {
+ $0.isNewline
+ })
.enumerated()
{
var l = line