Remove default locale file

This commit is contained in:
Anthony Rose 2025-01-03 11:11:55 +00:00
parent 64485105f0
commit 8b9e5e6532

View file

@ -1,8 +1,5 @@
#!/bin/sh #!/bin/sh
# Start from known core "C" locale. This will get overwritten later.
export LANG=C.UTF-8
# Set up XDG variables. See: # Set up XDG variables. See:
# https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html # https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
export XDG_DATA_DIRS=${XDG_DATA_DIRS:-/usr/local/share:/usr/share:/usr/pkg/share} export XDG_DATA_DIRS=${XDG_DATA_DIRS:-/usr/local/share:/usr/share:/usr/pkg/share}
@ -23,13 +20,8 @@ if [ ! -d "$XDG_RUNTIME_DIR" ] ; then install -d -m 0700 "$XDG_RUNTIME_DIR" ; fi
if [ ! -d "$HOME/.local/bin" ] ; then install -d -m 0700 "$HOME/.local/bin" ; fi if [ ! -d "$HOME/.local/bin" ] ; then install -d -m 0700 "$HOME/.local/bin" ; fi
# Locale and language. # Locale and language.
## Clear the existing locale settings and set options I always want.
export TZ=Europe/London # Can override this elsewhere if needed. export TZ=Europe/London # Can override this elsewhere if needed.
if ! [ -f /run/.containerenv ] && ! [ -f "$XDG_CONFIG_HOME/locale.conf" ] && [ -x /usr/bin/locale ] if [ -r "$XDG_CONFIG_HOME/locale.conf" ]
then
LANG="C.UTF-8" /usr/bin/locale > "$XDG_CONFIG_HOME/locale.conf"
fi
if ! [ -f /run/.containerenv ] && [ -r "$XDG_CONFIG_HOME/locale.conf" ]
then then
. "$XDG_CONFIG_HOME/locale.conf" . "$XDG_CONFIG_HOME/locale.conf"
fi fi