diff options
author | Sven Gothel <[email protected]> | 2021-07-02 06:30:31 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2021-07-02 06:30:31 +0200 |
commit | bfab07caca02333c5c9c3cd94d22cab7888fe449 (patch) | |
tree | e434039d859ee7daf89b1030a32d2766b539426e | |
parent | 7ce666a0e8a1255292503d2219718ef04d1f1dbd (diff) |
chroot: use UTF8 and set LC_*
-rw-r--r-- | scripts/common | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/common b/scripts/common index efd00b9..7a0093a 100644 --- a/scripts/common +++ b/scripts/common @@ -93,6 +93,12 @@ on_chroot() { mount --bind /sys "${ROOTFS_DIR}/sys" fi + # run as root 'dpkg-reconfigure locales' enable 'en_US.UTF-8' + # perhaps run as root 'update-locale LC_MEASUREMENT=en_US.UTF-8 LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8' + export LC_MEASUREMENT=en_US.UTF-8 + export LC_ALL=en_US.UTF-8 + export LANG=en_US.UTF-8 + setarch linux32 capsh --drop=cap_setfcap "--chroot=${ROOTFS_DIR}/" -- -e "$@" } export -f on_chroot |