aboutsummaryrefslogtreecommitdiffstats
path: root/MandrivaUpdate
diff options
context:
space:
mode:
authorThierry Vignaud <tv@mandriva.org>2007-05-29 07:59:25 +0000
committerThierry Vignaud <tv@mandriva.org>2007-05-29 07:59:25 +0000
commitc2799c9577bbb92768162e2464edc50f6163ba8e (patch)
treeff2e80b3a3f709e897f7e4d4f93a414add245afe /MandrivaUpdate
parentf6dfacff6a9ebf4fdd3f77c6180ad24f7eeae3d8 (diff)
downloadrpmdrake-c2799c9577bbb92768162e2464edc50f6163ba8e.tar
rpmdrake-c2799c9577bbb92768162e2464edc50f6163ba8e.tar.gz
rpmdrake-c2799c9577bbb92768162e2464edc50f6163ba8e.tar.bz2
rpmdrake-c2799c9577bbb92768162e2464edc50f6163ba8e.tar.xz
rpmdrake-c2799c9577bbb92768162e2464edc50f6163ba8e.zip
(refresh_packages_list) fix crash due to UTF-8 issue
Diffstat (limited to 'MandrivaUpdate')
-rwxr-xr-xMandrivaUpdate4
1 files changed, 3 insertions, 1 deletions
diff --git a/MandrivaUpdate b/MandrivaUpdate
index f32c1fc1..38355a0e 100755
--- a/MandrivaUpdate
+++ b/MandrivaUpdate
@@ -70,7 +70,9 @@ sub refresh_packages_list {
my $i;
@{$list->{data}} = map {
$data{$_} = $i++;
- [ $pkgs->{$_}{selected}, join("\n", "<b>$_</b>", escape_text_for_TextView_markup_format(translate(rpm_summary($pkgs->{$_}{pkg}->summary)))) ];
+ my $summary = translate(to_utf8(rpm_summary($pkgs->{$_}{pkg}->summary)));
+ [ $pkgs->{$_}{selected}, join("\n", "<b>$_</b>",
+ utf8::valid($summary) ? escape_text_for_TextView_markup_format($summary) : '') ];
} grep { $pkgs->{$_}{pkg} } @requested;
gtktext_insert($info,
formatAlaTeX(N("The list of updates is empty. This means that either there is