Prevent: perl: warning: Setting locale failed.
authorshort <>
Mon, 28 Mar 2005 05:46:57 +0000 (05:46 +0000)
committershort <>
Mon, 28 Mar 2005 05:46:57 +0000 (05:46 +0000)
.bashrc

diff --git a/.bashrc b/.bashrc
index 45107b4..e072657 100644 (file)
--- 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