summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2002-08-29 11:26:26 +0000
committerPascal Rigaux <pixel@mandriva.com>2002-08-29 11:26:26 +0000
commit644301f079dd772dcd66873cef15510ffaeeda2b (patch)
tree09ce987bc68d73ab1094db96ad823d626dc159ea
parent29c07a60b0f84f6264f269a23135d711ee380798 (diff)
downloaddrakx-644301f079dd772dcd66873cef15510ffaeeda2b.tar
drakx-644301f079dd772dcd66873cef15510ffaeeda2b.tar.gz
drakx-644301f079dd772dcd66873cef15510ffaeeda2b.tar.bz2
drakx-644301f079dd772dcd66873cef15510ffaeeda2b.tar.xz
drakx-644301f079dd772dcd66873cef15510ffaeeda2b.zip
rpm description & group are in utf8, so use c::from_utf8
-rw-r--r--perl-install/install_steps_gtk.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/install_steps_gtk.pm b/perl-install/install_steps_gtk.pm
index cac0ccf95..61c65f5b4 100644
--- a/perl-install/install_steps_gtk.pm
+++ b/perl-install/install_steps_gtk.pm
@@ -337,7 +337,7 @@ sub choosePackagesTree {
_("Version: %s\n", $p->version . '-' . $p->release) .
_("Size: %d KB\n", $p->size / 1024) .
($imp && _("Importance: %s\n", $imp)) . "\n" .
- formatLines($p->description));
+ formatLines(c::from_utf8($p->description)));
return $info;
},
toggle_nodes => sub {
@@ -559,7 +559,7 @@ sub installPackages {
$msg->set(_("Installing package %s", $p->name));
$current_total_size += $last_size;
$last_size = $p->size;
- $text->set((split /\n/, $p->summary)[0] || '');
+ $text->set((split /\n/, c::from_utf8($p->summary))[0] || '');
$advertize->(1) if $show_advertising && $total_size > 20_000_000 && time() - $change_time > 20;
$w->flush;
} elsif ($type eq 'inst' && $subtype eq 'progress') {