bash_profile: Set more locale things.
[profile] / bash_profile
index 5b46a34..057f797 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//:"