1
0
Fork 0

bashrc: export $LANG for the stupid Debian UTF-8 problem

This commit is contained in:
Pratham Patel 2024-03-19 16:31:30 +05:30
parent f4c51df4a8
commit 4ac33098d6
Signed by: thefossguy
SSH Key Fingerprint: SHA256:/B3wAg7jnMEBQ2JwkebbS/eXVZANDmqRfnd9QkIhxMI
1 changed files with 5 additions and 0 deletions

View File

@ -52,6 +52,11 @@ if [[ "$(uname -s)" == 'Linux' ]]; then
export NEEDRESTART_MODE='a'
export DEBIAN_FRONTEND='noninteractive'
export APT_LISTCHANGES_FRONTEND='none'
if grep 'ID=debian' /etc/os-release > /dev/null; then
LANG="$(grep -v '^# ' /etc/locale.gen | head -n 1 | sed -e 's/ /./')"
export LANG
fi
fi
fi