path: root/scripts/
diff options
authorMasahiro Yamada <>2021-03-13 04:38:14 +0900
committerMasahiro Yamada <>2021-03-13 11:12:13 +0900
commitbcbcf50f521843445c9ea320a0569874f88c4b7a (patch)
tree46b1d98471589930d0547185ab5e578cd932a42b /scripts/
parent285a65f1a10f87088cefd6c7ea6ff26b143339b3 (diff)
kbuild: fix to not be affected by locale checks the output from $(LD) --version, but it has a problem on some locales. For example, in Italian: $ LC_MESSAGES=it_IT.UTF-8 ld --version | head -n 1 ld di GNU (GNU Binutils for Debian) 2.35.2 This makes fail because it expects "GNU ld" for the BFD linker case. Add LC_ALL=C to override the user's locale. BTW, setting LC_MESSAGES=C (or LANG=C) is not enough because it is ineffective if LC_ALL is set on the user's environment. Link: Reported-by: Marco Scardovi Reported-by: Andy Shevchenko <> Signed-off-by: Masahiro Yamada <> Recensito-da: Nick Desaulniers <> Reviewed-by: Nathan Chancellor <>
Diffstat (limited to 'scripts/')
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/ b/scripts/
index 30debf78aa09..1bf3aadde9de 100755
--- a/scripts/
+++ b/scripts/
@@ -29,7 +29,7 @@ orig_args="$@"
# Get the first line of the --version output.
-set -- $("$@" --version)
+set -- $(LC_ALL=C "$@" --version)
# Split the line on spaces.
IFS=' '