The Wednesday 2005-04-13 at 10:50 +0200, Philipp Thomas wrote:
So it has to be something in the environment of user "cer" that is different from the rest of users that makes "mc" show line boxes correctly. But I can't imagine what it is.
What's the setting of LC_CTYPE for that user and other users? The output of running locale should show how it's set.
I found the cause of the problem: I use two different xterms. One, is the normal xterm; the other I start with the command " LANG=en_US.ISO-8859-1 LC_ALL=en_US.ISO-8859-1 /usr/bin/xterm & I have to use an iso xterm for some programs, like Pine, for example. This xterm works well for the user that has the desktop, but not if I "sux - user" to somebody else. iso xterm (gnome under user cer) --------- user cer LC_CTYPE="en_US.ISO-8859-1" works ok. su - root LC_CTYPE=en_US.UTF-8 mc does not draw lines su - fido LC_CTYPE="en_US.UTF-8" mc does not draw lines utf xterm (default, gnome) ---------- user cer LC_CTYPE="en_US.UTF-8" works su - root LC_CTYPE=en_US.UTF-8 works su - fido LC_CTYPE="en_US.UTF-8" works The problem with the utf locale for mc is that the windows partitions use the iso set, and some chars show as "?" - so I prefer the iso set. I wonder if I can pass environment variables to "sux" ? If not, I'll modify my "isoxterm" script to request "user" name first. Or use "mc -a", as Paul Trevethan mentioned. -- Cheers, Carlos Robinson