chiark / gitweb /
bash_profile: Set more locale things.
authorMark Wooding <mdw@distorted.org.uk>
Tue, 24 Feb 2009 09:13:54 +0000 (09:13 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Tue, 24 Feb 2009 09:13:54 +0000 (09:13 +0000)
In fact more or less everything other than LC_COLLATE and LC_ALL.
LC_COLLATE is evil and must die.

bash_profile

index 5b46a34d671eeb81fa023e0841fd6c97d9c0909f..057f797dc0d57af64865dc67e5b724ba633cd4d3 100644 (file)
@@ -117,9 +117,14 @@ if [ "$DISPLAY" = "" ]; then
 else
   LC_CTYPE=`mdw-conf x-ctype`
 fi
-unset LANG LC_ALL LC_COLLATE
+unset LANG LC_ALL
 export LC_CTYPE
 
+for lc in TIME NUMERIC MONETARY PAPER NAME ADDRESS TELEPHONE MEASUREMENT; do
+  eval "export LC_$lc=$LC_CTYPE"
+done
+export LC_COLLATE=POSIX
+
 __mdw_programp distcc && export CCACHE_PREFIX=distcc
 
 export TEXINPUTS=".:$HOME/lib/tex//:"