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