1 |
commit: 0785165ca64b8e6396a24043789d0bfb8b3359d3 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 6 16:18:10 2021 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 6 16:18:10 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=0785165c |
7 |
|
8 |
genkernel: normalize locales |
9 |
|
10 |
We need to ensure we are using same locales within genkernel |
11 |
because some regular expressions or program output we parse |
12 |
maybe different depending on used locales. |
13 |
|
14 |
Bug: https://bugs.gentoo.org/763165 |
15 |
Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org> |
16 |
|
17 |
genkernel | 6 ++++++ |
18 |
1 file changed, 6 insertions(+) |
19 |
|
20 |
diff --git a/genkernel b/genkernel |
21 |
index 6ec8905..85c2021 100755 |
22 |
--- a/genkernel |
23 |
+++ b/genkernel |
24 |
@@ -4,6 +4,12 @@ |
25 |
PATH="${PATH}:/sbin:/usr/sbin" |
26 |
GK_V='4.1.2' |
27 |
|
28 |
+# Normalize locales |
29 |
+export LC_ALL=C |
30 |
+export LANG=C |
31 |
+unset LC_MESSAGES |
32 |
+unset LC_CTYPE |
33 |
+ |
34 |
GK_TIME_START=$(date +%s) |
35 |
|
36 |
TODEBUGCACHE=yes # Until an error occurs or LOGFILE is fully qualified. |