aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2021-02-06 17:18:10 +0100
committerThomas Deutschmann <whissi@gentoo.org>2021-02-06 17:18:10 +0100
commit0785165ca64b8e6396a24043789d0bfb8b3359d3 (patch)
treed45c945f15986260ae897506c2386978dfb3e9d8
parentgen_initramfs.sh: fix typo: s/auxilary/auxiliary/g (diff)
downloadgenkernel-0785165ca64b8e6396a24043789d0bfb8b3359d3.tar.gz
genkernel-0785165ca64b8e6396a24043789d0bfb8b3359d3.tar.bz2
genkernel-0785165ca64b8e6396a24043789d0bfb8b3359d3.zip
genkernel: normalize locales
We need to ensure we are using same locales within genkernel because some regular expressions or program output we parse maybe different depending on used locales. Bug: https://bugs.gentoo.org/763165 Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
-rwxr-xr-xgenkernel6
1 files changed, 6 insertions, 0 deletions
diff --git a/genkernel b/genkernel
index 6ec8905..85c2021 100755
--- a/genkernel
+++ b/genkernel
@@ -4,6 +4,12 @@
PATH="${PATH}:/sbin:/usr/sbin"
GK_V='4.1.2'
+# Normalize locales
+export LC_ALL=C
+export LANG=C
+unset LC_MESSAGES
+unset LC_CTYPE
+
GK_TIME_START=$(date +%s)
TODEBUGCACHE=yes # Until an error occurs or LOGFILE is fully qualified.