File tree 1 file changed +7
-6
lines changed
modules/cli/src/main/scala/scala/cli/commands/setupide
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
5
5
import com .github .plokhotnyuk .jsoniter_scala .core .*
6
6
import com .google .gson .GsonBuilder
7
7
8
- import java .nio .charset .Charset
8
+ import java .nio .charset .{ Charset , StandardCharsets }
9
9
10
10
import scala .build .EitherCps .{either , value }
11
11
import scala .build .*
@@ -160,11 +160,12 @@ object SetupIde extends ScalaCommand[SetupIdeOptions] {
160
160
List (" scala" , " java" ).asJava
161
161
)
162
162
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 )
168
169
169
170
val gson = new GsonBuilder ().setPrettyPrinting().create()
170
171
You can’t perform that action at this time.
0 commit comments