Re: [CentOS] Terminal settings question.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@xxxxxxxxxx <> www.madboa.com
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux