lol

buildGraalvmNativeImage: fix Unicode issue by setting encoding explicitly

Remove the old workaround where we set it by LC_ALL, that does not seem
to be working anymore.

Fixes #260161.

+3 -4
+3 -4
pkgs/build-support/build-graalvm-native-image/default.nix
··· 3 , glibcLocales 4 # The GraalVM derivation to use 5 , graalvmDrv 6 - , name ? "${args.pname}-${args.version}" 7 , executable ? args.pname 8 # JAR used as input for GraalVM derivation, defaults to src 9 , jar ? args.src ··· 15 "-H:Name=${executable}" 16 "-march=compatibility" 17 "--verbose" 18 ] 19 # Extra arguments to be passed to the native-image 20 , extraNativeImageBuildArgs ? [ ] 21 # XMX size of GraalVM during build 22 , graalvmXmx ? "-J-Xmx6g" 23 - # Locale to be used by GraalVM compiler 24 - , LC_ALL ? "en_US.UTF-8" 25 , meta ? { } 26 , ... 27 } @ args: ··· 41 ]; 42 in 43 stdenv.mkDerivation ({ 44 - inherit dontUnpack LC_ALL jar; 45 46 nativeBuildInputs = (args.nativeBuildInputs or [ ]) ++ [ graalvmDrv glibcLocales ]; 47
··· 3 , glibcLocales 4 # The GraalVM derivation to use 5 , graalvmDrv 6 , executable ? args.pname 7 # JAR used as input for GraalVM derivation, defaults to src 8 , jar ? args.src ··· 14 "-H:Name=${executable}" 15 "-march=compatibility" 16 "--verbose" 17 + "-J-Dsun.stdout.encoding=UTF-8" 18 + "-J-Dsun.stderr.encoding=UTF-8" 19 ] 20 # Extra arguments to be passed to the native-image 21 , extraNativeImageBuildArgs ? [ ] 22 # XMX size of GraalVM during build 23 , graalvmXmx ? "-J-Xmx6g" 24 , meta ? { } 25 , ... 26 } @ args: ··· 40 ]; 41 in 42 stdenv.mkDerivation ({ 43 + inherit dontUnpack jar; 44 45 nativeBuildInputs = (args.nativeBuildInputs or [ ]) ++ [ graalvmDrv glibcLocales ]; 46