?
Solved

$LANG is wrong when telnetted and su'd - RH 8.0

Posted on 2003-02-25
3
Medium Priority
?
194 Views
Last Modified: 2013-12-15
If I telnet into my server, I get garbage for certain characters ', -, |, and others unless I put

LANG=en_US
export LANG

in my .bash_profile.

However, if I

su root

the problem reappears, even if I do the same in root's .bash_profile.  $LANG stays at en_US.UTF-8 no matter what I do.  So man and anything that uses curses are almost useless when I'm root, unless I hike over to the console.

Suggestions?
0
Comment
Question by:jclark666
  • 2
3 Comments
 
LVL 9

Accepted Solution

by:
majorwoo earned 300 total points
ID: 8020366
try resetting the system wide default value in:

/etc/sysconfig/i18n
0
 
LVL 9

Expert Comment

by:majorwoo
ID: 8020371
(that works on my redhat 8.0 -> which is probably the same as you have, since redhat 8 has known issues here)
0
 
LVL 2

Author Comment

by:jclark666
ID: 8020508
That did it, thanks!
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
This article will show you step-by-step instructions to build your own NTP CentOS server.  The network diagram shows the best practice to setup the NTP server farm for redundancy.  This article also serves as your NTP server documentation.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month8 days, 16 hours left to enroll

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question