From ce1b6269d0118ccf891c6fbe9b375e707c9a55d6 Mon Sep 17 00:00:00 2001 From: short <> Date: Mon, 28 Mar 2005 05:46:57 +0000 Subject: [PATCH] Prevent: perl: warning: Setting locale failed. --- .bashrc | 3 +++ 1 file changed, 3 insertions(+) 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 -- 1.8.3.1