[<prev] [next>] [day] [month] [year] [list]
Message-ID: <176060840395.709179.15771055064700527810.tip-bot2@tip-bot2>
Date: Thu, 16 Oct 2025 09:53:23 -0000
From: "tip-bot2 for John Wang" <tip-bot2@...utronix.de>
To: linux-tip-commits@...r.kernel.org
Cc: John Wang <wangzq.jn@...il.com>, Josh Poimboeuf <jpoimboe@...nel.org>,
x86@...nel.org, linux-kernel@...r.kernel.org
Subject:
[tip: objtool/core] scripts/faddr2line: Set LANG=C to enforce ASCII output
The following commit has been merged into the objtool/core branch of tip:
Commit-ID: 567f9c428f99560fe14e647def9f42f5344ebde9
Gitweb: https://git.kernel.org/tip/567f9c428f99560fe14e647def9f42f5344ebde9
Author: John Wang <wangzq.jn@...il.com>
AuthorDate: Fri, 28 Mar 2025 15:38:02 +08:00
Committer: Josh Poimboeuf <jpoimboe@...nel.org>
CommitterDate: Tue, 14 Oct 2025 14:45:20 -07:00
scripts/faddr2line: Set LANG=C to enforce ASCII output
Force tools like readelf to use the POSIX/C locale by exporting LANG=C
This ensures ASCII-only output and avoids locale-specific
characters(e.g., UTF-8 symbols or translated strings), which could
break text processing utilities like sed in the script
Signed-off-by: John Wang <wangzq.jn@...il.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@...nel.org>
---
scripts/faddr2line | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/scripts/faddr2line b/scripts/faddr2line
index 1fa6bee..1f364fb 100755
--- a/scripts/faddr2line
+++ b/scripts/faddr2line
@@ -76,6 +76,10 @@ ADDR2LINE="${UTIL_PREFIX}addr2line${UTIL_SUFFIX}"
AWK="awk"
GREP="grep"
+# Enforce ASCII-only output from tools like readelf
+# ensuring sed processes strings correctly.
+export LANG=C
+
command -v ${AWK} >/dev/null 2>&1 || die "${AWK} isn't installed"
command -v ${READELF} >/dev/null 2>&1 || die "${READELF} isn't installed"
command -v ${ADDR2LINE} >/dev/null 2>&1 || die "${ADDR2LINE} isn't installed"
Powered by blists - more mailing lists