armbian-build/lib/functions/host
Igor Velkov 3e71438048 Fix locale warnings during chroot operations
Build process generated numerous locale warnings like:
bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
perl: warning: Setting locale failed

This happened because the Docker container and host environment were
configured to use `en_US.UTF-8`, but the rootfs cache may not contain
this locale (only `C.utf8` and whatever `DEST_LANG` specifies,
e.g. `en_GB.utf8`).

When `chroot_sdcard` runs commands inside the rootfs, environment variables
are inherited from the host/Docker, causing locale lookup failures.

Then use `C.UTF-8` locale for the build environment instead of `en_US.UTF-8`.
This locale is always available in rootfs immediately after mmdebstrap,
requiring no generation.

Changes
`lib/functions/host/docker.sh`: Remove `en_US.UTF-8` locale generation,
set `LANG=C.UTF-8` in container environment
`lib/functions/host/prepare-host.sh`: Change locale exports
from `en_US.UTF-8` to `C.UTF-8`
2026-01-08 12:24:18 +01:00
..
apt-cacher-ng.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
basic-deps.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
docker.sh Fix locale warnings during chroot operations 2026-01-08 12:24:18 +01:00
external-toolchains.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
host-release.sh allow build on forky host 2026-01-01 11:06:13 +01:00
host-utils.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
mktemp-utils.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
mountpoints.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
prepare-host.sh Fix locale warnings during chroot operations 2026-01-08 12:24:18 +01:00
tmpfs-utils.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00
wsl2.sh chore: update copyright years to 2026 2025-12-25 12:03:34 +01:00