summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-09-03 06:26:47 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-09-03 06:26:47 +0000
commit3237592af5967731e85294ff611ad2c62d58a222 (patch)
tree1fc6fc086a670500e34cdb9e133d3d9d20629ca8 /perl-install/interactive
parent080c9d47e2f45a309149cb4636f7f57ac3eb4d39 (diff)
downloaddrakx-backup-do-not-use-3237592af5967731e85294ff611ad2c62d58a222.tar
drakx-backup-do-not-use-3237592af5967731e85294ff611ad2c62d58a222.tar.gz
drakx-backup-do-not-use-3237592af5967731e85294ff611ad2c62d58a222.tar.bz2
drakx-backup-do-not-use-3237592af5967731e85294ff611ad2c62d58a222.tar.xz
drakx-backup-do-not-use-3237592af5967731e85294ff611ad2c62d58a222.zip
- we need unicode_start, which need kbd_mode and a real "echo" command
- initialize newt (and so slang) with a fake en_US.UTF-8 locale during install (and it works better when slang does its setlocale, i don't know why)
Diffstat (limited to 'perl-install/interactive')
-rw-r--r--perl-install/interactive/newt.pm11
1 files changed, 10 insertions, 1 deletions
diff --git a/perl-install/interactive/newt.pm b/perl-install/interactive/newt.pm
index 5a1f22e5d..c9da9c92a 100644
--- a/perl-install/interactive/newt.pm
+++ b/perl-install/interactive/newt.pm
@@ -15,7 +15,16 @@ my ($width, $height) = (80, 25);
my @wait_messages;
sub new {
- Newt::Init();
+ if ($::isInstall) {
+ system('unicode_start'); #- don't use run_program, we must do it on current console
+ {
+ local $ENV{LC_CTYPE} = "en_US.UTF-8";
+ Newt::Init(1);
+ }
+ c::setlocale();
+ } else {
+ Newt::Init(0);
+ }
Newt::Cls();
Newt::SetSuspendCallback();
($width, $height) = Newt::GetScreenSize();