File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
modules/cli/src/main/scala/scala/cli/commands/setupide Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import ch.epfl.scala.bsp4j.BspConnectionDetails
55import com .github .plokhotnyuk .jsoniter_scala .core .*
66import com .google .gson .GsonBuilder
77
8- import java .nio .charset .Charset
8+ import java .nio .charset .{ Charset , StandardCharsets }
99
1010import scala .build .EitherCps .{either , value }
1111import scala .build .*
@@ -160,11 +160,12 @@ object SetupIde extends ScalaCommand[SetupIdeOptions] {
160160 List (" scala" , " java" ).asJava
161161 )
162162
163- val charset = options.charset
164- .map(_.trim)
165- .filter(_.nonEmpty)
166- .map(Charset .forName)
167- .getOrElse(Charset .defaultCharset()) // Should it be UTF-8?
163+ val charset =
164+ options.charset
165+ .map(_.trim)
166+ .filter(_.nonEmpty)
167+ .map(Charset .forName)
168+ .getOrElse(StandardCharsets .UTF_8 )
168169
169170 val gson = new GsonBuilder ().setPrettyPrinting().create()
170171
You can’t perform that action at this time.
0 commit comments