Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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@gmail.com>
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>

authored by

John Wang and committed by
Josh Poimboeuf
567f9c42 a808a2b3

+4
+4
scripts/faddr2line
··· 76 76 AWK="awk" 77 77 GREP="grep" 78 78 79 + # Enforce ASCII-only output from tools like readelf 80 + # ensuring sed processes strings correctly. 81 + export LANG=C 82 + 79 83 command -v ${AWK} >/dev/null 2>&1 || die "${AWK} isn't installed" 80 84 command -v ${READELF} >/dev/null 2>&1 || die "${READELF} isn't installed" 81 85 command -v ${ADDR2LINE} >/dev/null 2>&1 || die "${ADDR2LINE} isn't installed"