[CentOS] Terminal settings question.

Mon Oct 30 16:56:35 UTC 2006
Paul Heinlein <heinlein at madboa.com>

On Mon, 30 Oct 2006, Ralph Angenendt wrote:

> David Mackintosh wrote:
> > Ralph Angenendt wrote:
> > 
> >> What's the variable "charset" set to in you .muttrc? Does it reflect the
> >> locale your system is running?
> > 
> > My "charset" value is unset.  And how do I check my locale?  Is that in
> > /etc/sysconfig/i18n?

Just run /usr/bin/locale in your terminal. The key value is LC_CTYPE, 
which specifies characters and case conversion.

You can test your terminal's ability to handle various locales with a 
simple script:

----- %< -----
#!/bin/bash
LANG=C
for loc in $(locale -a | grep utf8 | sort); do
  echo "Locale: $loc"
  # Aug 1, 2004 was a Sunday, Aug 7 a Saturday
  for n in $(seq 1 7); do
    LANG="$loc" date +"%A (%a)" -d 2004/8/${n}
  done
  for n in $(seq 1 12); do
    LANG="$loc" date +"%B (%b)" -d 2004/${n}/1
  done
  echo
done
----- %< -----

-- 
Paul Heinlein <> heinlein at madboa.com <> www.madboa.com