On Tue, 21 Jan 2003, Amish Munshi wrote:
Have any of you found a solution for the garbled text of Redhat 8.0. The ncurses library seems to be the problem - I am not sure though.
[snip]
content on the screen. This happens in the text mode (non-GUI) and in all (xterm, konsole, etc) the terminal windows in the GUI as well.
Hi,
This may be caused by $LANG set to en_US.UTF-8 in RH 8.0, here a script I cobbled to fix it automatically on terminals.
------- lang_xterm.sh -------- # # $LANG modifications for xterms and VTs # # VTs TermType=`/sbin/consoletype` if [ "$TermType" == "vt" ]; then # console virtual terminal export LANG=en_US fi # xterms and others bin_term=`ps --no-headers $PPID | awk '{print $5}'` case $bin_term in gnome-terminal) # UTF Enabled ;; *) if [ "$TermType" == "pty" ]; then export LANG=en_US fi ;; esac unset TermType bin_term ------ lang_xterm.sh -------
Put this in /etc/profile.d/, and it will be executed everytime you start a bash shell. This fixes man page display etc. For certain apps you may need to do,
...]$ LANG=en_US command &
So you can just alias it or something.
Best regards, Rajesh