Skip to content

Commit

Permalink
Don't use os.read buggy override (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexarchambault authored Aug 22, 2021
1 parent 640365e commit 9d0f6f9
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ import packager.config.{SharedSettings, WindowsSettings}

import java.nio.charset.Charset

import scala.io.Codec

final case class WindowsOptions(
@Group("Windows")
@HelpMessage("Path to license file")
Expand Down Expand Up @@ -51,7 +53,7 @@ final case class WindowsOptions(
extraConfig
.map { path =>
val path0 = os.Path(path, os.pwd)
os.read(path0, charSet = Charset.defaultCharset(), offset = 0L)
os.read(path0, Codec(Charset.defaultCharset()))
}
.mkString(System.lineSeparator())
}
Expand Down

0 comments on commit 9d0f6f9

Please sign in to comment.