[LTP] [PATCH 1/3] Makefile: set LC_ALL and LANG to C
Petr Vorel
pvorel@suse.cz
Fri Oct 21 13:53:31 CEST 2022
* have reproducible builds (no locale dependencies)
* English only output - easier to debug problem
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
NOTE: if we want to have only reproducible build, but keep localized
messages, we could use kernel approach:
unexport LC_ALL
LC_COLLATE=C
LC_NUMERIC=C
export LC_COLLATE LC_NUMERIC
They deliberately kept LC_CTYPE to have localized messages.
See also
c051346b7db2 ("Makefile: set LC_CTYPE, LC_COLLATE, LC_NUMERIC to C")
07105202bdeb ("Makefile: do not override LC_CTYPE")
Makefile | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/Makefile b/Makefile
index d4399bae6..ea11ac7f3 100644
--- a/Makefile
+++ b/Makefile
@@ -21,6 +21,10 @@
# Ngie Cooper, July 2009
#
+# Avoid funny character set dependencies
+export LANG=C
+export LC_ALL=C
+
top_srcdir ?= $(CURDIR)
include $(top_srcdir)/include/mk/env_pre.mk
--
2.38.0
More information about the ltp
mailing list