From 3237592af5967731e85294ff611ad2c62d58a222 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 3 Sep 2004 06:26:47 +0000 Subject: - 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) --- perl-install/interactive/newt.pm | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'perl-install/interactive') 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(); -- cgit v1.2.1