Fix strcoll() sorting (case-sensitive): "unset LANG"->"set LC_COLLATE=C"
authorroot <>
Mon, 31 Dec 2001 13:57:20 +0000 (13:57 +0000)
committerroot <>
Mon, 31 Dec 2001 13:57:20 +0000 (13:57 +0000)
 - user may want localized environment
[cs_CZ] Oprava strcoll() trideni (kapitalky 1.): "unset LANG"->"set LC_COLLATE=C"
 - uzivatel muze chtit lokalizovane prostredi

.bashrc

diff --git a/.bashrc b/.bashrc
index 4cf2f83..03e2bb1 100644 (file)
--- a/.bashrc
+++ b/.bashrc
@@ -56,8 +56,8 @@ export PERL_MM_OPT="PREFIX=$HOME"
 export WWW_HOME="file:///home/short/.bookmarks.html"
 export GREP_OPTIONS="--binary-files=without-match --directories=skip"
 
-# even when LANG is set to "en_US" it is lethal - strcoll() starts to sort case-insensitively!
-unset LANG
+# Force strcoll() to sort case-sensitively! (empty/undef doesn't work)
+export LC_COLLATE=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