Skip to content

Commit 11476d1

Browse files
authored
Merge pull request #2546 from dotty-staging/fix/dottydoc-input-format
Fix reading of jar resource files for dottydoc
2 parents 12c2e47 + 825f6cf commit 11476d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc-tool/src/dotty/tools/dottydoc/staticsite/ResourceFinder.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ trait ResourceFinder {
99
final case class ResourceNotFoundException(message: String) extends Exception(message)
1010

1111
protected def getResource(r: String): String =
12-
Option(getClass.getResourceAsStream(r)).map(scala.io.Source.fromInputStream)
12+
Option(getClass.getResourceAsStream(r))
13+
.map(scala.io.Source.fromInputStream(_)(scala.io.Codec.UTF8))
1314
.map(_.mkString)
1415
.getOrElse(throw ResourceNotFoundException(r))
15-
1616
}

0 commit comments

Comments
 (0)