summaryrefslogtreecommitdiffstats
path: root/perl-install/interactive/newt.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/interactive/newt.pm')
-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();