Adjust /bin/locale to print time-related locale, too.

* add support for printing the time-related locale (which may contain
  a '@strings=messages' suffix if required by locale configuration
* adjust cmdline params of /bin/locale to be a bit clearer (but keep
  support for -c for compatibility)
* adjust /etc/profile to invoke /bin/locale accordingly
This commit is contained in:
Oliver Tappe
2012-02-23 23:15:36 +01:00
parent ec17468f63
commit 98057dd02a
2 changed files with 35 additions and 16 deletions
+6 -7
View File
@@ -17,13 +17,12 @@ export HISTFILESIZE=50
export HISTCONTROL=ignoredups
# Locale
export LANG=`locale -l`
export LC_CTYPE=`locale -c`
export LC_TIME=`locale -f`
export LC_NUMERIC=$LC_TIME
export LC_COLLATE=$LC_TIME
export LC_MONETARY=$LC_TIME
export LC_MESSAGES=$LC_TIME
export LC_MESSAGES=`locale -m`
export LC_NUMERIC=`locale -f`
export LC_TIME=`locale -t`
export LC_COLLATE=$LC_MESSAGES
export LC_CTYPE=$LC_MESSAGES
export LC_MONETARY=$LC_NUMERIC
alias ls="ls --color"
alias ll="ls -lA"