From: short <> Date: Mon, 28 Mar 2005 05:46:57 +0000 (+0000) Subject: Prevent: perl: warning: Setting locale failed. X-Git-Url: https://git.jankratochvil.net/?p=nethome.git;a=commitdiff_plain;h=ce1b6269d0118ccf891c6fbe9b375e707c9a55d6 Prevent: perl: warning: Setting locale failed. --- diff --git a/.bashrc b/.bashrc index 45107b4..e072657 100644 --- a/.bashrc +++ b/.bashrc @@ -150,6 +150,9 @@ unset LANG LANGUAGE `set|sed -n 's/^\(LC_[^=]*\)=.*$/\1/p'` export LANG=en_US.UTF-8 # Force strcoll() to sort case-sensitively! (empty/undef doesn't work) export LC_COLLATE=C +# Prevent: perl: warning: Setting locale failed. +# due to LC_COLLATE=C and LC_ALL=(unset) +export LC_ALL=C function cvsdiff { cvs diff "$@" 2>&1|pipebuf -q| less; }; export -f cvsdiff function cvsdiffi { cvs diff "$@" 2>&1|pipebuf -q|grep -v '^?'|less; }; export -f cvsdiffi