Strange characters with pstree and ncurses apps -- i18n problem

From: Jason (jake1138_at_NO.SPAM.yahoo.com)
Date: 06/26/04


Date: Sat, 26 Jun 2004 10:51:11 -0600

Why does Red Hat 8 and later (including Fedora) default to UTF-8 character
encoding when most command line apps don't yet support it?

It took me forever to figure out why pstree and various ncurses apps would
show strange characters in place of expected characters. Mostly I'd get a
bunch of 'a circumflex' characters (â) -- the 'a with hat'.

I spent hours fiddling with different terminal settings (on both the client
and server side), getting inconsistent results. Then, after many hours
searching in the newsgroups, I came across an article about the i18n file
[/etc/sysconfig/i18n]. Here is what it looks like on a default English
language installation:

LANG="en_US.UTF-8"
SUPPORTED="en_US.UTF-8:en_US:en"
SYSFONT="latarcyrheb-sun16"

A simple edit later and all the problems go away:

LANG="en_US"
SUPPORTED="en_US:en"
SYSFONT="latarcyrheb-sun16"

Is there any need at all for UTF-8 encoding for English language
installations? And why have it enabled by default if it creates problems
with command line apps? I'm sure many have seen this problem and haven't
figured it out, so hopefully this knowledge helps you. If it does, let me
know, I'm curious how many others have shared my pain. Particularly, I'd
like to know how the Fedora maintainers feel about this.

-- 
Jason
[ jake1138 AT yahoo DOT com ]


Relevant Pages

  • Strange characters with pstree and ncurses apps -- i18n problem
    ... Why does Red Hat 8 and later (including Fedora) default to UTF-8 character ... encoding when most command line apps don't yet support it? ... It took me forever to figure out why pstree and various ncurses apps would ... show strange characters in place of expected characters. ...
    (Fedora)
  • Re: Strange characters with pstree and ncurses apps -- i18n problem
    ... >> encoding when most command line apps don't yet support it? ... >> It took me forever to figure out why pstree and various ncurses apps ... >> show strange characters in place of expected characters. ...
    (linux.redhat)
  • Re: Strange characters with pstree and ncurses apps -- i18n problem
    ... > encoding when most command line apps don't yet support it? ... > It took me forever to figure out why pstree and various ncurses apps would ... > Is there any need at all for UTF-8 encoding for English language ... I experience strange characters in curses apps too. ...
    (linux.redhat)
  • Re: Set App Priority
    ... string and then terminates" ... gives then parameters to use to modify the START command ... below) /F:OFF Disable file and directory name completion characters ... no special characters between the two quote characters, ...
    (microsoft.public.windowsxp.customize)
  • Re: Help me!! Why java is so popular
    ... Well, Unicode is not a storage encoding system, or anything like that. ... Unicode is primarily a mapping from characters (in the linguistic conceptual ... French, Russian, Japanese and Korean songs. ...
    (comp.lang.java.programmer)