Red Hat Bugzilla – Bug 211562
weird characters in pstree out w/ UTF8 charset
Last modified: 2007-11-30 17:07:35 EST
Description of problem:
I'm not sure if this is a real problem, but I think it is. With the default
locale settings of RHEL 5:
I get weird output from pstree:
[william@george-web1 ~]$ pstree
A co-worker gets this via SSH with SecureCRT (with $TERM set to "linux"), and I
get it on Eterm with $TERM set to xterm, xterm-xfree86, or Eterm. Setting $LANG,
$LC_CTYPE or $LC_ALL to "C" or ISO-8859-1 "fixes" the problem. I don't think
pstree is attempting to use ACS characters, and these should work fine in my
Interestingly, if I do:
pstree | cat
pstree > file
it looks fine.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. type pstree at the prompt with LANG set to en_US.UTF-8 from a non-UTF-8
reasinging to proper package
D'oh - sorry - meant to put this in psmisc.
Why do you have UTF-8 setting for non-UTF-8 terminal? It seems like odd environment.
(In reply to comment #3)
> Why do you have UTF-8 setting for non-UTF-8 terminal? It seems like odd
IIRC, RHEL ships with UTF-8 as the default setting for LANG / LC_ALL. So if
you're going to argue that it's a bad setting, don't set it by default.
Well, the setting works well for almost all users. If you need something
different you can define your own environment to $HOME/.i18n (see also system
defaults in /etc/sysconfig/i18n). For more details see /etc/profile.d/lang.s
where is bash profile script that initialize the setting.