summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-09-12 08:49:53 +0100
committerLeah Rowe <leah@libreboot.org>2026-09-12 08:49:53 +0100
commit798cc7939933720bfa580e07d5cde2446e9ca681 (patch)
treee20933a5a80ba0c6af3e36eeb07395e7d88b80fe /mk
parent6a2e9a7919d6fa5d1d0c5d8617c9d9aeab5f2301 (diff)
mk: export locales much earlier
also simplify the way it works (eval and awk) Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'mk')
-rwxr-xr-xmk5
1 files changed, 5 insertions, 0 deletions
diff --git a/mk b/mk
index 61c0020b..cea6c943 100755
--- a/mk
+++ b/mk
@@ -7,6 +7,11 @@
set -u -e
+eval "`printf "%s\n" "LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE \
+ LC_MONETARY LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE \
+ LC_MEASUREMENT LC_IDENTIFICATION LC_ALL" | \
+ awk '{ for (i=1; i<=NF; i++) $i = "export " $i "=C.UTF-8;"; print }'`"
+
(
xbarg0="$0"
[ "${xbarg0##*/}" = "$xbarg0" ] && \