diff --git a/scripts/ld-version.sh b/scripts/ld-version.sh
index 30debf78aa0906d98c40a636e4e8ffeefd9db9a8..1bf3aadde9def9d18628c445751d00fbf46c4928 100755
--- a/scripts/ld-version.sh
+++ b/scripts/ld-version.sh
@@ -29,7 +29,7 @@ orig_args="$@"
 # Get the first line of the --version output.
 IFS='
 '
-set -- $("$@" --version)
+set -- $(LC_ALL=C "$@" --version)
 
 # Split the line on spaces.
 IFS=' '