From ab59a164deaf7feba7f4d07a830da33df5499da1 Mon Sep 17 00:00:00 2001 From: oreo639 Date: Tue, 13 Sep 2022 10:22:19 -0700 Subject: [PATCH] base-files: don't overwrite existing locale and define default LANG Correct spelling of LC_IDENTIFICATION. --- srcpkgs/base-files/files/locale.sh | 12 ++++++++++-- srcpkgs/base-files/template | 2 +- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/srcpkgs/base-files/files/locale.sh b/srcpkgs/base-files/files/locale.sh index 8486367bfabf9..c148584f1afaa 100644 --- a/srcpkgs/base-files/files/locale.sh +++ b/srcpkgs/base-files/files/locale.sh @@ -1,9 +1,17 @@ # Sets up locale system settings from /etc/locale.conf. # if [ -s /etc/locale.conf ]; then - . /etc/locale.conf + while read -r line; do + line="${line%%#*}" + if [ -n "$line" ]; then + eval ": \${$line}" + fi + done < /etc/locale.conf fi +# define default LANG to C.UTF-8 if not already defined +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 diff --git a/srcpkgs/base-files/template b/srcpkgs/base-files/template index c3b59c8e6cd28..80b65683d2a34 100644 --- a/srcpkgs/base-files/template +++ b/srcpkgs/base-files/template @@ -1,7 +1,7 @@ # Template file for 'base-files' pkgname=base-files version=0.143 -revision=3 +revision=4 bootstrap=yes depends="xbps-triggers" short_desc="Void Linux base system files"