Mailinglist Archive: opensuse (4020 mails)

< Previous Next >
Re: [SLE] how to get mc and yast showing nice lines via putty
  • From: Leendert Meyer <leen.meyer@xxxxxxx>
  • Date: Thu, 7 Oct 2004 12:05:03 +0200
  • Message-id: <200410071205.03507.leen.meyer@xxxxxxx>
On Thursday 07 October 2004 11:47, Heupink, Mourik Jan C. wrote:
> Works!
>
> and how to make this default?

Only for mc, or for the entire system?

For the entire system, edit /etc/sysconfig/language, and set
RC_LANG="C" (untested).

Here is a patch for mc:

--- /usr/share/mc/bin/mc-wrapper.sh.orig 2004-09-09 18:30:10.000000000 +0200
+++ /usr/share/mc/bin/mc-wrapper.sh 2004-10-07 11:59:43.093697268 +0200
@@ -1,5 +1,8 @@
MC_PWD_FILE="${TMPDIR-/tmp}/mc-$USER/mc.pwd.$$"
+SAVE_LANG="$LANG"
+export LANG="C"
/usr/bin/mc -P "$MC_PWD_FILE" "$@"
+export LANG="$SAVE_LANG"

if test -r "$MC_PWD_FILE"; then
MC_PWD="`cat $MC_PWD_FILE`"

But you can also edit mc-wrapper.sh by hand.

Cheers,

Leen

< Previous Next >