From 375bdb79485ec90beb9a154112821a4657740b7a Mon Sep 17 00:00:00 2001 From: morph027 Date: Tue, 19 Dec 2023 18:48:54 +0100 Subject: [PATCH] add file.encoding=UTF-8 to native builds, refs #1105 (#1404) Signed-off-by: morph027 --- build.gradle.kts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index df3ce9d2..b0a37747 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -25,6 +25,8 @@ graalvmNative { binaries { this["main"].run { buildArgs.add("--install-exit-handlers") + buildArgs.add("-Dfile.encoding=UTF-8") + buildArgs.add("-J-Dfile.encoding=UTF-8") resources.autodetect() configurationFileDirectories.from(file("graalvm-config-dir")) if (System.getenv("GRAALVM_HOME") == null) {