diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-09-12 08:49:53 +0100 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-09-12 08:49:53 +0100 |
| commit | 798cc7939933720bfa580e07d5cde2446e9ca681 (patch) | |
| tree | e20933a5a80ba0c6af3e36eeb07395e7d88b80fe | |
| parent | 6a2e9a7919d6fa5d1d0c5d8617c9d9aeab5f2301 (diff) | |
mk: export locales much earlier
also simplify the way it works (eval and awk)
Signed-off-by: Leah Rowe <leah@libreboot.org>
| -rw-r--r-- | include/init.sh | 18 | ||||
| -rwxr-xr-x | mk | 5 |
2 files changed, 5 insertions, 18 deletions
diff --git a/include/init.sh b/include/init.sh index 52e87a6c..70c6591f 100644 --- a/include/init.sh +++ b/include/init.sh @@ -5,24 +5,6 @@ # Copyright (c) 2020-2026 Leah Rowe <leah@libreboot.org> # Copyright (c) 2025 Alper Nebi Yasak <alpernebiyasak@gmail.com> -utf_8="C.UTF-8" - -export LANG="$utf_8" -export LANGUAGE="$utf_8" -export LC_CTYPE="$utf_8" -export LC_NUMERIC="$utf_8" -export LC_TIME="$utf_8" -export LC_COLLATE="$utf_8" -export LC_MONETARY="$utf_8" -export LC_MESSAGES="$utf_8" -export LC_PAPER="$utf_8" -export LC_NAME="$utf_8" -export LC_ADDRESS="$utf_8" -export LC_TELEPHONE="$utf_8" -export LC_MEASUREMENT="$utf_8" -export LC_IDENTIFICATION="$utf_8" -export LC_ALL="$utf_8" - projectname="libreboot" projectsite="https://libreboot.org/" @@ -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" ] && \ |
