[ILUG] it started out as a question about the find utility

Conor McDermottroe lists at mcdermottroe.com
Sun Apr 11 00:42:45 IST 2004


On Sat, 2004-04-10 at 23:22, bryan hunt wrote:
> I'm running Redhat enterprise linux 3.0, anyone with a better knowledge 
> ( mine is non-existant ) of charactersets and all that crap have any 
> idea what I'm doing wrong ?

I don't use Redhat, but my guess is as follows:

Either:
1) There is a mismatch in locales somewhere
   (e.g. your manpages are in UTF-8 and you're trying to use an
    ISO-8859-1 locale)
Or
2) Your tools, or at least man and pstree, do not correctly handle 
   non-ASCII characters.

I would say that the first situation is more likely as [1] leads me to
believe that RedHat uses UTF-8 in at least some of its incarnations.

To find out what locale you're trying to use try the following:
$ locale
or
$ echo $LANG

Finding out what character set was used for the manpage might be a
little trickier. A quick and dirty way of finding out is to try a couple
of these:

$ env LANG=en_US.ISO8859-1 man find
$ env LANG=en_US.UTF-8 man find
$ env LANG=C man find
$ env LANG=en_US.ISO8859-1 pstree -a
... etc

>From those you should be able to find some locales that work well for
you. The page at [2] may also be of some use particularly the link
``timeline summary''.

Hope this gives you a better idea about what is going wrong.

-C

[1] http://linuxmafia.com/faq/RedHat/rh-locale.html
[2] http://www.iol.ie/~padraiga/docs/utf8.html



More information about the ILUG mailing list