commit: a90c33b7e62aeee6cbbb34ddd5bc34869aa3581a Author: Michał Górny <mgorny <AT> gentoo <DOT> org> AuthorDate: Sun Dec 7 18:48:17 2025 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Sun Dec 7 18:48:17 2025 +0000 URL: https://gitweb.gentoo.org/proj/blas-lapack-aux-wrapper.git/commit/?id=a90c33b7
For C locale for readelf invocation Bug: https://bugs.gentoo.org/967204 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> make-symbol-files.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/make-symbol-files.py b/make-symbol-files.py index 74881b1..203dacc 100755 --- a/make-symbol-files.py +++ b/make-symbol-files.py @@ -3,6 +3,7 @@ from __future__ import annotations import argparse +import os import subprocess import sys from pathlib import Path @@ -10,9 +11,12 @@ from typing import Generator def get_symbols(path: Path) -> Generator[str]: + env = os.environ.copy() + env["LC_MESSAGES"] = "C" it = iter(subprocess.run(["readelf", "-W", "--dyn-syms", str(path)], stdout=subprocess.PIPE, - check=True).stdout.decode().splitlines()) + check=True, + env=env).stdout.decode().splitlines()) for line in it: if line.startswith("Symbol table"): break
