From 51075c34517cc53075b4249e985343486d476ce7 Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sat, 6 Jul 2013 16:49:31 +0200 Subject: [PATCH] shell/env: Unset LANGUAGE. --- crontab.d/update.sh | 3 +-- shell/env | 4 ++++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/crontab.d/update.sh b/crontab.d/update.sh index 05519bb..062c34e 100755 --- a/crontab.d/update.sh +++ b/crontab.d/update.sh @@ -52,9 +52,8 @@ echo "###################################" >> "$CRONTAB" echo >> "$CRONTAB" echo "# It was generated from '$DIRECTORY/*' on `date -R`." >> "$CRONTAB" -# Enforce C sort order ($LANGUAGE is a GNU extension). +# Enforce C sort order. LC_ALL=C -LANGUAGE=C NO_MATCHES= for file in "$DIRECTORY"/crontab.*; do diff --git a/shell/env b/shell/env index f11e687..2c81633 100644 --- a/shell/env +++ b/shell/env @@ -25,6 +25,10 @@ source_debug ". ~/.shell/env" LANG=en_US.UTF-8 export LANG +# Make sure $LANGUAGE is not set. It's a GNU extension which can overwrite +# variables like $LANG or $LC_ALL. +unset LANGUAGE + # Add ~/bin and ~/.bin and ~/.shell/bin to PATH if available. if test -d "$HOME/.shell/bin"; then PATH="$HOME/.shell/bin:$PATH" -- 2.43.2