UTF8 funkyness

Florin Andrei <[email protected]> 30 Jul 2003 12:33:59 -0700
Newsgroups gmane.comp.security.forensics.tct
Organization SGI
Message-ID <[email protected]>
When using tct-1.11 on Red Hat 9, pay attention to the i18n stuff.

By default, RH9 defines the i18n stuff like this:

# cat /etc/sysconfig/i18n
LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"
#

So the LANG variable that the programs are exposed to is:

# echo $LANG
en_US.UTF-8
#

For some reason, mactime is not entirely happy with the UTF8 bits, and
it yields a large warning when you try to run it.
I am not sure if it's just a warning or if it really affects
functionality; i won't investigate that.
In any case, to make mactime happy and get rid of the warning, use this
command before running the Perl-based tct tools:

export LANG="en_US"

Or make the change permanent by editing /etc/sysconfig/i18n - it
shouldn't break anything important.

Regardless of the OS/distribution, check out your LANG variable. If it
contains UTF8, some applications may fail. I've seen it in many cases,
not only with tct (also some media players, etc).

Until more applications become UTF-aware, i guess we will need this kind
of quick fix many times. :-(

-- 
Florin Andrei

"Never send a human to do a machine's job." - Agent Smith