base-files: don't overwrite existing locale and define default LANG

This commit is contained in:
oreo639 2022-09-13 10:22:19 -07:00 committed by Leah Neukirchen
parent 63f8d8599f
commit 79ba662fb0
2 changed files with 11 additions and 4 deletions

View File

@ -1,9 +1,16 @@
# Sets up locale system settings from /etc/locale.conf.
#
if [ -s /etc/locale.conf ]; then
. /etc/locale.conf
# Don't load locale.conf if locale is already set up
if [ -z "$LANG" ]; then
if [ -s /etc/locale.conf ]; then
. /etc/locale.conf
fi
fi
# define default LANG to C.UTF-8 if not already set
LANG="${LANG:-C.UTF-8}"
export LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY
export LC_MESSAGES LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
export LC_INDENTIFICATION
export LC_IDENTIFICATION

View File

@ -1,6 +1,6 @@
# Template file for 'base-files'
pkgname=base-files
version=0.144
version=0.145
revision=1
bootstrap=yes
depends="xbps-triggers"